/**
  * Constructs a modification statement.
  *
  * @param \Helmich\TypoScriptParser\Parser\AST\ObjectPath                $object     The object to modify.
  * @param \Helmich\TypoScriptParser\Parser\AST\Operator\ModificationCall $call       The modification call.
  * @param int                                                            $sourceLine The original source line.
  */
 public function __construct(ObjectPath $object, ModificationCall $call, $sourceLine)
 {
     parent::__construct($sourceLine);
     $this->object = $object;
     $this->call = $call;
 }
Example #2
0
 /**
  * Constructs a copy statement.
  *
  * @param \Helmich\TypoScriptParser\Parser\AST\ObjectPath $object     The object to copy the value to.
  * @param \Helmich\TypoScriptParser\Parser\AST\ObjectPath $target     The object to copy the value from.
  * @param int                                             $sourceLine The original source line.
  */
 public function __construct(ObjectPath $object, ObjectPath $target, $sourceLine)
 {
     parent::__construct($sourceLine);
     $this->object = $object;
     $this->target = $target;
 }
 /**
  * Constructs an assignment.
  *
  * @param \Helmich\TypoScriptParser\Parser\AST\ObjectPath $object     The object to which to assign the value.
  * @param \Helmich\TypoScriptParser\Parser\AST\Scalar     $value      The value to be assigned.
  * @param int                                             $sourceLine The source line.
  */
 public function __construct(ObjectPath $object, Scalar $value, $sourceLine)
 {
     parent::__construct($sourceLine);
     $this->object = $object;
     $this->value = $value;
 }