public function __get($property) { switch ($property) { case 'width': case 'height': case 'aspectRatio': $method = 'get' . ucfirst($property); return $this->{$method}(); } return parent::__get($property); }
public function __get($property) { if ($this->_state == 'deleted') { notice('A deleted Record has no properties'); return; } else { return parent::__get($property); } }