TokenCollection
    
            
    
            
            implements
                            ArrayAccess,                             Iterator,                             Countable                    
    
    
        
        
    
    Interfaces, Classes, Traits and Enums
    
            - ArrayAccess
- Iterator
- Countable
    Table of Contents
    
                    - 
    $pos
    
                         : int            
- 
    $tokens
    
                         : array<string|int, Token>            
- 
    addToken()
    
                                 : void    
- 
    count()
    
                                 : int    
- 
    current()
    
                                 : Token    
- 
    key()
    
                                 : int    
- 
    next()
    
                                 : void    
- 
    offsetExists()
    
                                 : bool    
- 
    offsetGet()
    
                                 : Token    
- 
    offsetSet()
    
                                 : void    
- 
    offsetUnset()
    
                                 : void    
- 
    rewind()
    
                                 : void    
- 
    valid()
    
                                 : bool    
        $pos
        
        
                                
    
    
    
    
    private
        int
    $pos
    
    
    
    
                    
    
        $tokens
        
        
                                
    
    
    
    
    private
        array<string|int, Token>
    $tokens
     = []
    
    
    
            
            
        
                    
    
        addToken()
        
    
    
    
    
    public
                    addToken(Token $token) : void
        
        Parameters
    
                    - 
                $token
                : Token
                            
- 
                    
            
Return values
    void
            —
        
    
                    
    
        count()
        
    
    
    
    
    public
                    count() : int
        
    
    
        Return values
    int
            —
        
    
                    
    
        current()
        
    
    
    
    
    public
                    current() : Token
        
    
    
        Return values
    Token
            —
        
    
                    
    
        key()
        
    
    
    
    
    public
                    key() : int
        
    
    
        Return values
    int
            —
        
    
                    
    
        next()
        
    
    
    
    
    public
                    next() : void
        
    
    
        Return values
    void
            —
        
    
                    
    
        offsetExists()
        
    
    
    
    
    public
                    offsetExists(mixed $offset) : bool
        
        Parameters
    
                    - 
                $offset
                : mixed
                            
- 
                    
            
Return values
    bool
            —
        
    
                    
    
        offsetGet()
        
    
    
    
    
    public
                    offsetGet(mixed $offset) : Token
    
        Parameters
    
                    - 
                $offset
                : mixed
                            
- 
                    
            
                                    - 
                    throws
                
- 
                                                                TokenCollectionException
                                                            
                                             
                                    
Return values
    Token
            —
        
    
                    
    
        offsetSet()
        
    
    
    
    
    public
                    offsetSet(mixed $offset, Token $value) : void
    
        Parameters
    
                    - 
                $offset
                : mixed
                            
- 
                    
            
- 
                $value
                : Token
                            
- 
                
            
                                    - 
                    throws
                
- 
                                                                TokenCollectionException
                                                            
                                             
                                    
Return values
    void
            —
        
    
                    
    
        offsetUnset()
        
    
    
    
    
    public
                    offsetUnset(mixed $offset) : void
        
        Parameters
    
                    - 
                $offset
                : mixed
                            
- 
                    
            
Return values
    void
            —
        
    
                    
    
        rewind()
        
    
    
    
    
    public
                    rewind() : void
        
    
    
        Return values
    void
            —
        
    
                    
    
        valid()
        
    
    
    
    
    public
                    valid() : bool
        
    
    
        Return values
    bool
            —