Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Commit

Permalink
feat: Added new functions
Browse files Browse the repository at this point in the history
  • Loading branch information
joserick committed Apr 21, 2019
1 parent 972afd0 commit 8d52d99
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion src/Joserick/PHPlex/Server/Library/Item/Show.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit 8d52d99

Please sign in to comment.