for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
/*
* This file is part of the feed-io package.
*
* (c) Alexandre Debril <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FeedIo\Feed\Item;
class Media implements MediaInterface
{
/**
* @var string
protected $nodeName;
protected $type;
protected $url;
protected $length;
* @return string
public function getNodeName() : string
return $this->nodeName;
}
* @param string $nodeName
* @return MediaInterface
public function setNodeName(string $nodeName) : MediaInterface
$this->nodeName = $nodeName;
return $this;
* @return bool
public function isThumbnail() : bool
return $this->nodeName === 'media:thumbnail';
public function getType() : ? string
return $this->type;
* @param string $type
public function setType(?string $type) : MediaInterface
$this->type = $type;
public function getUrl() : ? string
return $this->url;
* @param string $url
public function setUrl(?string $url) : MediaInterface
$this->url = $url;
public function getLength() : ? string
return $this->length;
* @param string $length
public function setLength(?string $length) : MediaInterface
$this->length = $length;