From bab2fb3899cc243e2f67ccf787f3657b250f6e61 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 2 Feb 2018 15:39:47 -0800 Subject: Remove dependency on PicoFeed --- .../lib/PicoFeed/Syndication/ItemBuilder.php | 209 --------------------- 1 file changed, 209 deletions(-) delete mode 100644 vendor/miniflux/picofeed/lib/PicoFeed/Syndication/ItemBuilder.php (limited to 'vendor/miniflux/picofeed/lib/PicoFeed/Syndication/ItemBuilder.php') diff --git a/vendor/miniflux/picofeed/lib/PicoFeed/Syndication/ItemBuilder.php b/vendor/miniflux/picofeed/lib/PicoFeed/Syndication/ItemBuilder.php deleted file mode 100644 index 86985bc7..00000000 --- a/vendor/miniflux/picofeed/lib/PicoFeed/Syndication/ItemBuilder.php +++ /dev/null @@ -1,209 +0,0 @@ -feedBuilder = $feedBuilder; - } - - /** - * Get new object instance - * - * @access public - * @param FeedBuilder $feedBuilder - * @return static - */ - public static function create(FeedBuilder $feedBuilder) - { - return new static($feedBuilder); - } - - /** - * Add item title - * - * @access public - * @param string $title - * @return $this - */ - public function withTitle($title) - { - $this->itemTitle = $title; - return $this; - } - - /** - * Add item id - * - * @access public - * @param string $id - * @return $this - */ - public function withId($id) - { - $this->itemId = $id; - return $this; - } - - /** - * Add item url - * - * @access public - * @param string $url - * @return $this - */ - public function withUrl($url) - { - $this->itemUrl = $url; - return $this; - } - - /** - * Add item summary - * - * @access public - * @param string $summary - * @return $this - */ - public function withSummary($summary) - { - $this->itemSummary = $summary; - return $this; - } - - /** - * Add item content - * - * @access public - * @param string $content - * @return $this - */ - public function withContent($content) - { - $this->itemContent = $content; - return $this; - } - - /** - * Add item updated date - * - * @access public - * @param DateTime $date - * @return $this - */ - public function withUpdatedDate(DateTime $date) - { - $this->itemUpdatedDate = $date; - return $this; - } - - /** - * Add item published date - * - * @access public - * @param DateTime $date - * @return $this - */ - public function withPublishedDate(DateTime $date) - { - $this->itemPublishedDate = $date; - return $this; - } - - /** - * Add item author - * - * @access public - * @param string $name - * @param string $email - * @param string $url - * @return $this - */ - public function withAuthor($name, $email = '', $url ='') - { - $this->authorName = $name; - $this->authorEmail = $email; - $this->authorUrl = $url; - return $this; - } - - /** - * Build item - * - * @abstract - * @access public - * @return DOMElement - */ - abstract public function build(); -} -- cgit v1.2.3