getPodcast() instanceof Podcast; } public function getPodcast(): ?Podcast { if (! $this->podcast instanceof Podcast) { $this->podcast = new PodcastModel() ->getPodcastByActorId($this->id); } return $this->podcast; } #[Override] public function getAvatarImageUrl(): string { if ($this->podcast instanceof Podcast) { return $this->podcast->cover->thumbnail_url; } return parent::getAvatarImageUrl(); } #[Override] public function getAvatarImageMimetype(): string { if ($this->podcast instanceof Podcast) { return $this->podcast->cover->thumbnail_mimetype; } return parent::getAvatarImageMimetype(); } }