1 | <?php |
||
10 | class DomainParserExtension extends Twig_Extension |
||
11 | { |
||
12 | /** |
||
13 | * Pdp Parser. |
||
14 | * |
||
15 | * @var Parser |
||
16 | */ |
||
17 | private $parser; |
||
18 | |||
19 | /** |
||
20 | * Contructor used for the parser dependency. |
||
21 | * |
||
22 | * @param Parser $parser |
||
23 | */ |
||
24 | 9 | public function __construct(Parser $parser) |
|
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | 9 | public function getFunctions() |
|
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | 9 | public function getTests() |
|
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | 9 | public function getName() |
|
68 | } |
||
69 |