function Token::__construct
Same name in this branch
- 11.1.x vendor/theseer/tokenizer/src/Token.php \TheSeer\Tokenizer\Token::__construct()
- 11.1.x vendor/doctrine/lexer/src/Token.php \Doctrine\Common\Lexer\Token::__construct()
- 11.1.x vendor/twig/twig/src/Token.php \Twig\Token::__construct()
- 11.1.x vendor/symfony/css-selector/Parser/Token.php \Symfony\Component\CssSelector\Parser\Token::__construct()
- 11.1.x core/lib/Drupal/Core/Utility/Token.php \Drupal\Core\Utility\Token::__construct()
Class constructor
Parameters
string $type Token's type:
string $value Token's value:
File
-
vendor/
mck89/ peast/ lib/ Peast/ Syntax/ Token.php, line 121
Class
- Token
- A token emitted by the tokenizer.
Namespace
Peast\SyntaxCode
public function __construct($type, $value) {
$this->type = $type;
$this->value = $value;
$this->location = new SourceLocation();
}