Binary.php in Zircon Profile 8.0
File
vendor/twig/twig/lib/Twig/Node/Expression/Binary.php
View source
<?php
abstract class Twig_Node_Expression_Binary extends Twig_Node_Expression {
public function __construct(Twig_NodeInterface $left, Twig_NodeInterface $right, $lineno) {
parent::__construct(array(
'left' => $left,
'right' => $right,
), array(), $lineno);
}
public function compile(Twig_Compiler $compiler) {
$compiler
->raw('(')
->subcompile($this
->getNode('left'))
->raw(' ');
$this
->operator($compiler);
$compiler
->raw(' ')
->subcompile($this
->getNode('right'))
->raw(')');
}
public abstract function operator(Twig_Compiler $compiler);
}