Lines Matching refs:type
25 protected $type; variable in Twig\\Token
43 * @param int $type The type of the token
47 public function __construct($type, $value, $lineno) argument
49 $this->type = $type;
56 return sprintf('%s(%s)', self::typeToString($this->type, true), $this->value);
67 * @param array|string|int $type The type to test
72 public function test($type, $values = null) argument
74 if (null === $values && !\is_int($type)) {
75 $values = $type;
76 $type = self::NAME_TYPE;
79 return ($this->type === $type) && (
99 return $this->type;
113 * @param int $type The type as an integer
118 public static function typeToString($type, $short = false) argument
120 switch ($type) {
161 throw new \LogicException(sprintf('Token of type "%s" does not exist.', $type));
170 * @param int $type The type as an integer
174 public static function typeToEnglish($type) argument
176 switch ($type) {
204 throw new \LogicException(sprintf('Token of type "%s" does not exist.', $type));