Exemplo n.º 1
0
 public function testGetMethod()
 {
     $objectSetter = new ObjectSetter('method');
     $this->assertEquals('method', $objectSetter->getMethod());
     $objectSetter = new ObjectSetter();
     $objectSetter->setVariable(new EncoderNodeVariable('variableId'));
     $this->assertEquals('setVariableId', $objectSetter->getMethod());
 }
Exemplo n.º 2
0
 /**
  * @param ObjectSetter|null $setter
  * @return ObjectSetter
  */
 public function objectSetter(ObjectSetter $setter = null)
 {
     if ($setter) {
         $setter->setVariable($this);
     }
     $this->objectSetter = $setter;
     return $setter;
 }