123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- <?php
- namespace PicoFeed\Serialization;
- /**
- * Class Subscription
- *
- * @package PicoFeed\Serialization
- * @author Frederic Guillot
- */
- class Subscription
- {
- protected $title = '';
- protected $feedUrl = '';
- protected $siteUrl = '';
- protected $category = '';
- protected $description = '';
- protected $type = '';
- /**
- * Create object instance
- *
- * @static
- * @access public
- * @return Subscription
- */
- public static function create()
- {
- return new static();
- }
- /**
- * Set title
- *
- * @access public
- * @param string $title
- * @return Subscription
- */
- public function setTitle($title)
- {
- $this->title = $title;
- return $this;
- }
- /**
- * Get title
- *
- * @access public
- * @return string
- */
- public function getTitle()
- {
- return $this->title;
- }
- /**
- * Set feed URL
- *
- * @access public
- * @param string $feedUrl
- * @return Subscription
- */
- public function setFeedUrl($feedUrl)
- {
- $this->feedUrl = $feedUrl;
- return $this;
- }
- /**
- * Get feed URL
- *
- * @access public
- * @return string
- */
- public function getFeedUrl()
- {
- return $this->feedUrl;
- }
- /**
- * Set site URL
- *
- * @access public
- * @param string $siteUrl
- * @return Subscription
- */
- public function setSiteUrl($siteUrl)
- {
- $this->siteUrl = $siteUrl;
- return $this;
- }
- /**
- * Get site URL
- *
- * @access public
- * @return string
- */
- public function getSiteUrl()
- {
- return $this->siteUrl;
- }
- /**
- * Set category
- *
- * @access public
- * @param string $category
- * @return Subscription
- */
- public function setCategory($category)
- {
- $this->category = $category;
- return $this;
- }
- /**
- * Get category
- *
- * @access public
- * @return string
- */
- public function getCategory()
- {
- return $this->category;
- }
- /**
- * Set description
- *
- * @access public
- * @param string $description
- * @return Subscription
- */
- public function setDescription($description)
- {
- $this->description = $description;
- return $this;
- }
- /**
- * Get description
- *
- * @access public
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
- /**
- * Set type
- *
- * @access public
- * @param string $type
- * @return Subscription
- */
- public function setType($type)
- {
- $this->type = $type;
- return $this;
- }
- /**
- * Get type
- *
- * @access public
- * @return string
- */
- public function getType()
- {
- return $this->type;
- }
- }
|