| 1 | <?php |
||
| 18 | abstract class Operator extends Expression |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $operator; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var Expression |
||
| 27 | */ |
||
| 28 | protected $firstOperand; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var Expression |
||
| 32 | */ |
||
| 33 | protected $secondOperand; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param string $operator |
||
| 37 | * @param Expression $firstOperand |
||
| 38 | * @param Expression $secondOperand |
||
| 39 | */ |
||
| 40 | public function __construct($operator, Expression $firstOperand, Expression $secondOperand) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | public function operator() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return \Cubiche\Core\Visitor\Tests\Fixtures\Expression |
||
| 57 | */ |
||
| 58 | public function firstOperand() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return \Cubiche\Core\Visitor\Tests\Fixtures\Expression |
||
| 65 | */ |
||
| 66 | public function secondOperand() |
||
| 70 | } |
||
| 71 |