SqlParser\TokensList::__construct PHP Method

__construct() public method

Constructor.
public __construct ( array $tokens = [], integer $count )
$tokens array The initial array of tokens.
$count integer The count of tokens in the initial array.
    public function __construct(array $tokens = array(), $count = -1)
    {
        if (!empty($tokens)) {
            $this->tokens = $tokens;
            if ($count === -1) {
                $this->count = count($tokens);
            }
        }
    }