Exemple #1
0
 public function __construct($operator, Node $left, Node $right)
 {
     parent::__construct(array('left' => $left, 'right' => $right), array('operator' => $operator));
 }
Exemple #2
0
 public function __construct($value)
 {
     parent::__construct(array(), array('value' => $value));
 }
Exemple #3
0
 public function __construct($operator, ConstantNode $node)
 {
     parent::__construct(array('node' => $node), array('operator' => $operator));
 }
Exemple #4
0
 public function __construct($num, $bonus, $penalty)
 {
     parent::__construct(array(), array('bonus' => $bonus, 'penalty' => $penalty, 'num' => $num));
 }
Exemple #5
0
 public function __construct($num, $sides)
 {
     parent::__construct(array(), array('sides' => $sides, 'num' => $num));
 }