Skip to content

Commit

Permalink
Added animeAiredString property to Anime model
Browse files Browse the repository at this point in the history
  • Loading branch information
ToshY committed Oct 24, 2022
1 parent e2b6571 commit ff42009
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Model/Anime/Anime.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ class Anime
*/
private DateRange $aired;

/**
* @var string|null
*/
private ?string $animeAiredString;

/**
* @var string|null
*/
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -444,6 +450,14 @@ public function getAired(): DateRange
return $this->aired;
}

/**
* @return string|null
*/
public function getAnimeAiredString(): ?string
{
return $this->animeAiredString;
}

/**
* @return string
*/
Expand Down

0 comments on commit ff42009

Please sign in to comment.