3 * @see https://github.com/zendframework/zend-feed for the canonical source repository
4 * @copyright Copyright (c) 2018 Zend Technologies USA Inc. (https://www.zend.com)
5 * @license https://github.com/zendframework/zend-feed/blob/master/LICENSE.md New BSD License
8 namespace Zend\Feed\Reader\Extension\GooglePlayPodcast;
10 use Zend\Feed\Reader\Extension;
12 class Entry extends Extension\AbstractEntry
19 public function getPlayPodcastBlock()
21 if (isset($this->data['block'])) {
22 return $this->data['block'];
25 $block = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/googleplay:block)');
31 $this->data['block'] = $block;
33 return $this->data['block'];
37 * Get the entry explicit
41 public function getPlayPodcastExplicit()
43 if (isset($this->data['explicit'])) {
44 return $this->data['explicit'];
47 $explicit = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/googleplay:explicit)');
53 $this->data['explicit'] = $explicit;
55 return $this->data['explicit'];
59 * Get the episode summary/description
61 * Uses verbiage so it does not conflict with base entry.
65 public function getPlayPodcastDescription()
67 if (isset($this->data['description'])) {
68 return $this->data['description'];
71 $description = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/googleplay:description)');
77 $this->data['description'] = $description;
79 return $this->data['description'];
83 * Register googleplay namespace
86 protected function registerNamespaces()
88 $this->xpath->registerNamespace('googleplay', 'http://www.google.com/schemas/play-podcasts/1.0');