| Total Complexity | 7 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 15 | class SwitchNode extends Twig_Node |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Constructor |
||
| 19 | * |
||
| 20 | * @param \Twig_NodeInterface $cases |
||
| 21 | * @param \Twig_NodeInterface $expression |
||
| 22 | * @param int $line |
||
| 23 | */ |
||
| 24 | public function __construct(Twig_NodeInterface $cases, Twig_NodeInterface $expression, $line) |
||
| 25 | { |
||
| 26 | parent::__construct( |
||
| 27 | array( |
||
| 28 | 'expression' => $expression, |
||
| 29 | 'cases' => $cases |
||
| 30 | ), |
||
| 31 | array(), |
||
| 32 | $line |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | |||
| 36 | |||
| 37 | /** |
||
| 38 | * Compiles the node |
||
| 39 | * |
||
| 40 | * @param \Twig_Compiler $compiler |
||
| 41 | * @return void |
||
| 42 | */ |
||
| 43 | public function compile(Twig_Compiler $compiler) |
||
| 78 | } |
||
| 79 | } |
||
| 80 |