podcast); } public function getPodcast() { if (empty($this->id)) { throw new \RuntimeException( 'Actor must be created before getting associated podcast.', ); } if (empty($this->podcast)) { $this->podcast = (new PodcastModel())->getPodcastByActorId( $this->id, ); } return $this->podcast; } }