diff --git a/src/Joserick/PHPlex/Server/Library/Item/Show.php b/src/Joserick/PHPlex/Server/Library/Item/Show.php index 5a036a2..e73efb1 100644 --- a/src/Joserick/PHPlex/Server/Library/Item/Show.php +++ b/src/Joserick/PHPlex/Server/Library/Item/Show.php @@ -127,8 +127,32 @@ public function getRandomEpisode() * * @return integer Count of seasons of the Plex library Show. */ - public function getCountSeasons() + public function getSeasonsCount() { return $this->getChildCount(); } + + /** + * Returns an integer of the Episodes number for the instantiated show. + * + * @uses Plex_Server_Library_ItemGrandparentAbstract::getLeafCount() + * + * @return integer Count of episodes of the Plex library Show. + */ + public function getEpisodesCount() + { + return $this->getLeafCount(); + } + + /** + * Returns an integer of the number of episodes viewed for the instantiated show. + * + * @uses Plex_Server_Library_ItemGrandparentAbstract::getViewedLeafCount() + * + * @return integer Count of episodes viewed of the Plex library Show. + */ + public function getViewedEpisodesCount() + { + return $this->getViewedLeafCount(); + } }