You are here

public function Parser::__construct in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/yaml/Parser.php \Symfony\Component\Yaml\Parser::__construct()
  2. 8.0 vendor/symfony/css-selector/Parser/Parser.php \Symfony\Component\CssSelector\Parser\Parser::__construct()
  3. 8.0 vendor/egulias/email-validator/src/Egulias/EmailValidator/Parser/Parser.php \Egulias\EmailValidator\Parser\Parser::__construct()
Same name and namespace in other branches
  1. 8 vendor/symfony/css-selector/Parser/Parser.php \Symfony\Component\CssSelector\Parser\Parser::__construct()

Constructor.

Parameters

null|Tokenizer $tokenizer:

File

vendor/symfony/css-selector/Parser/Parser.php, line 38

Class

Parser
CSS selector parser.

Namespace

Symfony\Component\CssSelector\Parser

Code

public function __construct(Tokenizer $tokenizer = null) {
  $this->tokenizer = $tokenizer ?: new Tokenizer();
}