__set() публичный Метод

Sets the property $name to $value.
public __set ( string $name, mixed $value )
$name string
$value mixed
Пример #1
0
 /**
  * Sets the property $name to $value.
  *
  * @throws ezcBasePropertyNotFoundException
  *         if the property does not exist.
  * @param string $name
  * @param mixed $value
  * @ignore
  */
 public function __set($name, $value)
 {
     switch ($name) {
         case 'plainText':
         case 'htmlText':
         case 'charset':
         case 'encoding':
             $this->properties[$name] = $value;
             break;
         case 'options':
             if (!$value instanceof ezcMailComposerOptions) {
                 throw new ezcBaseValueException($name, $value, 'ezcMailComposerOptions');
             }
             $this->options = $value;
             break;
         default:
             parent::__set($name, $value);
     }
 }