public function __get($property) { switch (strtolower($property)) { case 'isimmutable': return $this->isImmutable(); default: return parent::__get($property); } }