From 89b2fc0689e6e176a4bb4d9354509a817b789ba5 Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Tue, 31 Dec 2024 09:59:48 -0500 Subject: [PATCH] Flesh out the aggregate class for channels. --- app/src/Domain/Aggregate/ChannelAggregate.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/Domain/Aggregate/ChannelAggregate.php b/app/src/Domain/Aggregate/ChannelAggregate.php index d6c543b..77bf1f8 100644 --- a/app/src/Domain/Aggregate/ChannelAggregate.php +++ b/app/src/Domain/Aggregate/ChannelAggregate.php @@ -18,6 +18,11 @@ class ChannelAggregate $this->setEpisodes($episodes); } + public function getChannel(): Channel + { + return $this->channel; + } + public function hasEpisodes(): bool { return (bool) count($this->episodes);