Beispiel #1
0
 /**
  * Outputs the value of $this.
  * @return stdClass
  */
 public function getValue()
 {
     if (gettype($this->value) !== 'object') {
         return parent::getValue();
     }
     $value = clone $this->value;
     $set_props = $this->getSetProps();
     // Adds properties to value.
     foreach ($set_props as $set_prop) {
         if ($value->{$set_prop} instanceof Atom) {
             $value->{$set_prop} = $value->{$set_prop}->getValue();
         }
     }
     return $value;
 }