Flesh out the aggregate class for channels.
This commit is contained in:
parent
25b9f2b798
commit
89b2fc0689
@ -18,6 +18,11 @@ class ChannelAggregate
|
|||||||
$this->setEpisodes($episodes);
|
$this->setEpisodes($episodes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getChannel(): Channel
|
||||||
|
{
|
||||||
|
return $this->channel;
|
||||||
|
}
|
||||||
|
|
||||||
public function hasEpisodes(): bool
|
public function hasEpisodes(): bool
|
||||||
{
|
{
|
||||||
return (bool) count($this->episodes);
|
return (bool) count($this->episodes);
|
||||||
|
Loading…
Reference in New Issue
Block a user