/** * Get the avatar ID. * * @return int|null */ public function getAvatarId() { return $this->avatar ? $this->avatar->getId() : null; }
/** * Get the url of the page background. * * @return string */ public function getBackgroundUrl() { return $this->background ? $this->background->getUrl() : ''; }