Automattic\WooCommerce\Vendor\GraphQL\Language
Lexer::__construct
Method of the class: Lexer{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Lexer = new Lexer(); $Lexer->__construct( $source, $options );
- $source(Source) (required)
- .
- $options(array)
- .
Default:[]
Lexer::__construct() Lexer:: construct code WC 10.9.1
public function __construct(Source $source, array $options = [])
{
$startOfFileToken = new Token(Token::SOF, 0, 0, 0, 0);
$this->source = $source;
$this->options = $options;
$this->lastToken = $startOfFileToken;
$this->token = $startOfFileToken;
}