for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Represents a TV show episode
*
* @author Sam Stenvall <[email protected]>
* @copyright Copyright © Sam Stenvall 2013-
* @license https://www.gnu.org/licenses/gpl.html The GNU General Public License v3.0
*/
class Episode extends File implements IStreamable
{
* @var int
public $episodeid;
public $tvshowid;
public $episode;
* @var string
public $showtitle;
public $season;
* @var string the episode title (not the same as the label)
public $title;
public function getIdField()
return 'episodeid';
}
* Returns a string based on season and episode number, e.g. 1x05.
* @return string
public function getEpisodeString()
return $this->season.'x'.str_pad($this->episode, 2, '0', STR_PAD_LEFT);