Automattic\WooCommerce\Vendor\GraphQL\Language\AST
Location::__construct
Method of the class: Location{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Location = new Location(); $Location->__construct( ?Token $startToken, ?Token $endToken, ?Source $source );
- ?Token $startToken
- .
Default:null - ?Token $endToken
- .
Default:null - ?Source $source
- .
Default:null
Location::__construct() Location:: construct code WC 10.9.1
public function __construct(?Token $startToken = null, ?Token $endToken = null, ?Source $source = null)
{
$this->startToken = $startToken;
$this->endToken = $endToken;
$this->source = $source;
if ($startToken === null || $endToken === null) {
return;
}
$this->start = $startToken->start;
$this->end = $endToken->end;
}