public function __set($key, $value) { if ($this->mutable && $this->hasMutatorMethod($key, 'set')) { $value = $this->{$this->buildMutatorMethod($key, 'set')}($value); } $this->setAttribute($key, $value); }