Skip to content

Commit

Permalink
Complete conversion to ItemCollection for episodes
Browse files Browse the repository at this point in the history
  • Loading branch information
godsgood33 committed Dec 23, 2022
1 parent f1cb255 commit bcfcc8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jc21/TV/Season.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function __construct()
'addedAt' => null,
'updatedAt' => null,
];
$this->episodes = [];
$this->episodes = new ItemCollection();
}

/**
Expand Down Expand Up @@ -123,7 +123,7 @@ public function getChildren(): ItemCollection
*/
public function addEpisode(Episode $e)
{
$this->episodes[$e->index] = $e;
$this->episodes->addData($e);
}

/**
Expand Down

0 comments on commit bcfcc8d

Please sign in to comment.