public function __get($key) { if ($this->mutable && $this->hasMutatorMethod($key, 'get')) { return $this->{$this->buildMutatorMethod($key, 'get')}(); } return $this->getAttribute($key); }