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