Example #1
0
 /**
  * Magic setter.
  *
  * @param string $property
  * @param mixed  $value
  *
  * @return AbstractMessage
  */
 public function __set($property, $value)
 {
     if (property_exists($this, $property)) {
         $this->{$property} = $value;
     } else {
         parent::__set($property, $value);
     }
     return $this;
 }