public function __get($property) { if (property_exists($this, $property)) { return $this->{$property}; } return $this->data($property); }