ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Constant.php
Go to the documentation of this file.
1
<?
php
2
3
/*
4
* This file is part of Twig.
5
*
6
* (c) 2010 Fabien Potencier
7
*
8
* For the full copyright and license information, please view the LICENSE
9
* file that was distributed with this source code.
10
*/
11
15
class
Twig_Extensions_Grammar_Constant
extends
Twig_Extensions_Grammar
16
{
17
protected
$type
;
18
19
public
function
__construct
(
$name
,
$type
= null)
20
{
21
$this->name =
$name
;
22
$this->type = null ===
$type
?
Twig_Token::NAME_TYPE
:
$type
;
23
}
24
25
public
function
__toString
()
26
{
27
return
$this->name
;
28
}
29
30
public
function
parse
(
Twig_Token
$token
)
31
{
32
$this->parser->getStream()->expect($this->type, $this->name);
33
34
return
$this->name
;
35
}
36
37
public
function
getType
()
38
{
39
return
$this->type
;
40
}
41
}
Twig_Extensions_Grammar_Constant\__construct
__construct($name, $type=null)
Definition:
Constant.php:19
Twig_Token
Twig_Extensions_Grammar\$name
$name
Definition:
Grammar.php:17
Twig_Extensions_Grammar_Constant\getType
getType()
Definition:
Constant.php:37
Twig_Extensions_Grammar_Constant\parse
parse(Twig_Token $token)
Definition:
Constant.php:30
PHPMailer\PHPMailer\$token
$token
Definition:
get_oauth_token.php:135
Twig_Extensions_Grammar_Constant
Definition:
Constant.php:15
php
Twig_Extensions_Grammar_Constant\__toString
__toString()
Definition:
Constant.php:25
Twig_Token\NAME_TYPE
const NAME_TYPE
Definition:
Token.php:32
Twig_Extensions_Grammar
Definition:
Grammar.php:15
Twig_Extensions_Grammar_Constant\$type
$type
Definition:
Constant.php:17
libs
composer
vendor
twig
extensions
lib
Twig
Extensions
Grammar
Constant.php
Generated on Thu Jan 16 2025 19:01:58 for ILIAS by
1.8.13 (using
Doxyfile
)