public function __set($k, $v) { try { parent::__set($k, $v); } catch (Exception $e) { $this->options[$k] = $v; } }
public function __set($key, $value) { $this->init(); if (preg_match('/^tweet(.+)$/', $key, $match)) { $attr = lcfirst($match[1]); $this->tweetButton->{$attr} = $value; } else { parent::__set($key, $value); } }
/** * @inheritdoc */ public function __set($name, $value) { if (array_key_exists($name, $this->properties) || in_array($name, $this->properties)) { $this->properties[$name] = $value; foreach ($this->properties as $i => $v) { if (is_int($i) && $v === $name) { unset($this->properties[$i]); } } } else { parent::__set($name, $value); } }