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