for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Acelaya\Website\Feed;
use Zend\Stdlib\AbstractOptions;
class BlogOptions extends AbstractOptions
{
/**
* @var string
*/
protected $url = '';
protected $feed = '';
* @var int
protected $elementsToDisplay = 5;
* @return string
public function getUrl(): string
return $this->url;
}
* @param string $url
* @return $this
public function setUrl(string $url)
$this->url = $url;
return $this;
public function getFeed(): string
return $this->feed;
* @param string $feed
public function setFeed(string $feed)
$this->feed = $feed;
* @return int
public function getElementsToDisplay(): int
return $this->elementsToDisplay;
* @param int $elementsToDisplay
public function setElementsToDisplay(int $elementsToDisplay)
$this->elementsToDisplay = $elementsToDisplay;
public function getCacheKey(): string
return sprintf('blog_feed_%s', $this->url);