/** * Sets the option $name to $value. * * @throws ezcBasePropertyNotFoundException * if the property $name is not defined * @throws ezcBaseValueException * if $value is not correct for the property $name * @param string $name The name of the property to set * @param mixed $value The new value of the property * @ignore */ public function __set($name, $value) { switch ($name) { default: parent::__set($name, $value); } }
/** * Sets the option $name to $value. * * @throws ezcBasePropertyNotFoundException * if the property $name is not defined * @throws ezcBaseValueException * if $value is not correct for the property $name * @param string $name The name of the property to set * @param mixed $value The new value of the property * @ignore */ public function __set($name, $value) { switch ($name) { case 'tableNonces': case 'tableAssociations': if (!is_array($value)) { throw new ezcBaseValueException($name, $value, 'array'); } $this->properties[$name] = $value; break; default: parent::__set($name, $value); } }