/** * Property write access. * * @param string $propertyName Name of the property. * @param mixed $propertyValue The value for the property. * * @throws ezcBasePropertyNotFoundException * If a the value for the property options is not an instance of * @throws ezcBaseValueException * If a the value for a property is out of range. * @ignore */ public function __set($propertyName, $propertyValue) { switch ($propertyName) { case "cascade": if (!is_bool($propertyValue)) { throw new ezcBaseValueException($propertyName, $propertyValue, "bool"); } $this->properties[$propertyName] = $propertyValue; break; default: parent::__set($propertyName, $propertyValue); break; } }
/** * Property write access. * * @param string $propertyName Name of the property. * @param mixed $propertyValue The value for the property. * * @throws ezcBasePropertyNotFoundException * If a the value for the property options is not an instance of * @throws ezcBaseValueException * If a the value for a property is out of range. * @ignore */ public function __set($propertyName, $propertyValue) { switch ($propertyName) { case "relationTable": if (!is_string($propertyValue)) { throw new ezcBaseValueException($propertyName, $propertyValue, "string"); } $this->properties[$propertyName] = $propertyValue; break; default: parent::__set($propertyName, $propertyValue); break; } }