public function getTags() { if ($this->tags === null) { $this->tags = TagDb::selectByAppId($this->getId()); } return $this->tags; }