/** * @return object */ public function getAuthor() { if (!$this->checkProperty('author')) { $Model = new StatModel('stat'); $this->author = $Model->getAuthorByEntity($this); // TODO (function is not exists) } return $this->author; }