Lines Matching refs:type
23 private $type; variable in Twig\\Token
42 * @param int $type The type of the token
46 public function __construct($type, $value, $lineno) argument
48 $this->type = $type;
55 return sprintf('%s(%s)', self::typeToString($this->type, true), $this->value);
66 * @param array|string|int $type The type to test
71 public function test($type, $values = null) argument
73 if (null === $values && !\is_int($type)) {
74 $values = $type;
75 $type = self::NAME_TYPE;
78 return ($this->type === $type) && (
98 return $this->type;
112 * @param int $type The type as an integer
117 public static function typeToString($type, $short = false) argument
119 switch ($type) {
163 throw new \LogicException(sprintf('Token of type "%s" does not exist.', $type));
172 * @param int $type The type as an integer
176 public static function typeToEnglish($type) argument
178 switch ($type) {
208 throw new \LogicException(sprintf('Token of type "%s" does not exist.', $type));