1 | <?php |
||
9 | class ModelEqualityOperator extends \Twig_Node_Expression |
||
10 | { |
||
11 | /** |
||
12 | * {@inheritdoc} |
||
13 | */ |
||
14 | 1 | public function __construct(\Twig_NodeInterface $left, \Twig_NodeInterface $right, $lineno) |
|
18 | |||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | 1 | public function compile(\Twig_Compiler $compiler) |
|
31 | |||
32 | /** |
||
33 | * Checks if $a and $b represent the same object |
||
34 | * |
||
35 | * Used as a helper function, since there might be syntax errors when older |
||
36 | * PHP versions try to parse this: (new Model())->isSameAs($b) |
||
37 | * |
||
38 | * @param \Model $a |
||
39 | * @param \Model $b |
||
40 | * |
||
41 | * @return bool |
||
42 | */ |
||
43 | 1 | public static function equalModels(\Model $a, \Model $b) |
|
47 | } |
||
48 |