/** * Magical function to set value to given element. * * @param string $var The name of the element * @param mixed $value The value to set * * @return \BackBee\ClassContent\AbstractClassContent The current instance content * @throws \BackBee\ClassContent\Exception\UnknownPropertyException Occurs when $var does not match an element * @codeCoverageIgnore */ public function __set($var, $value) { return null !== $this->getDraft() ? $this->getDraft()->__set($var, $value) : parent::__set($var, $value); }