From ff4200940e1ab11a282a769ad32705e43972e813 Mon Sep 17 00:00:00 2001 From: ToshY <31921460+ToshY@users.noreply.github.com> Date: Tue, 25 Oct 2022 00:26:20 +0200 Subject: [PATCH] Added animeAiredString property to Anime model --- src/Model/Anime/Anime.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Model/Anime/Anime.php b/src/Model/Anime/Anime.php index 0479920f..a98a1993 100755 --- a/src/Model/Anime/Anime.php +++ b/src/Model/Anime/Anime.php @@ -96,6 +96,11 @@ class Anime */ private DateRange $aired; + /** + * @var string|null + */ + private ?string $animeAiredString; + /** * @var string|null */ @@ -244,6 +249,7 @@ public static function fromParser(AnimeParser $parser): Anime $instance->status = $parser->getStatus(); $instance->airing = $instance->status === 'Currently Airing'; $instance->aired = $parser->getAired(); + $instance->animeAiredString = $parser->getAnimeAiredString(); $instance->premiered = $parser->getPremiered(); $instance->broadcast = $parser->getBroadcast(); $instance->producers = $parser->getProducers(); @@ -444,6 +450,14 @@ public function getAired(): DateRange return $this->aired; } + /** + * @return string|null + */ + public function getAnimeAiredString(): ?string + { + return $this->animeAiredString; + } + /** * @return string */