/** * Set a value as private setting or attribute. * * Attributes include title and description. * * @param string $name Name of the attribute or private_setting * @param mixed $value Value to be set * @return void */ public function __set($name, $value) { if (array_key_exists($name, $this->attributes)) { parent::__set($name, $value); } else { $this->setPrivateSetting($name, $value); } }