Source of file Subscribe.php
Size: 0,992 Bytes - Last Modified: 2020-12-04T01:48:29+00:00
/home/vagrant/Code/projects/podcast-feed-parser/src/Rawvoice/Subscribe.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 | <?php namespace Lukaswhite\PodcastFeedParser\Rawvoice; /** * Class Subscribe * * @package Lukaswhite\PodcastFeedParser\Rawvoice */ class Subscribe { const FEED = 'feed'; const ITUNES = 'itunes'; const GOOGLEPLAY = 'googleplay'; const BLUBRRY = 'blubrry'; const HTML = 'html'; const STITCHER = 'stitcher'; const TUNEIN = 'tunein'; /** * @var array */ protected $links = []; /** * @return array */ public function getLinks() { return $this->links; } /** * @param string $platform * @return string */ public function getLink(string $platform): ?string { return isset($this->links[$platform]) ? $this->links[$platform] : null; } /** * @param string $platform * @param string $link * @return self */ public function addLink(string $platform, string $link): self { $this->links[$platform] = $link; return $this; } } |