Source of file Category.php
Size: 1,241 Bytes - Last Modified: 2020-12-03T04:11:31+00:00
/home/vagrant/Code/projects/podcast-feed-parser/src/Category.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 | <?php namespace Lukaswhite\PodcastFeedParser; class Category { const ITUNES = 'itunes'; const GOOGLE_PLAY = 'googleplay'; /** * @var string */ protected $name; /** * @var string */ protected $type; /** * @var array */ protected $subCategories = []; /** * @return string */ public function getName() { return $this->name; } /** * @param string $name * @return Category */ public function setName($name) { $this->name = $name; return $this; } /** * @return string */ public function getType() { return $this->type; } /** * @param string $type * @return Category */ public function setType($type) { $this->type = $type; return $this; } /** * @return array */ public function getSubCategories() { return $this->subCategories; } /** * @param Category $subCategory * @return Category */ public function addSubCategory(Category $subCategory): Category { $this->subCategories[] = $subCategory; return $this; } } |