for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Shlinkio\Shlink\Core\Options;
use Acelaya\ZsmAnnotatedServices\Annotation\Inject;
use Shlinkio\Shlink\Common\Util\StringUtilsTrait;
use Zend\Stdlib\AbstractOptions;
class AppOptions extends AbstractOptions
{
use StringUtilsTrait;
/**
* @var string
*/
protected $name = '';
protected $version = '1.0';
protected $secretKey = '';
* AppOptions constructor.
* @param array|null|\Traversable $options
*
* @Inject({"config.app_options"})
public function __construct($options = null)
parent::__construct($options);
}
* @return string
public function getName()
return $this->name;
* @param string $name
* @return $this
protected function setName($name)
$this->name = $name;
return $this;
public function getVersion()
return $this->version;
* @param string $version
protected function setVersion($version)
$this->version = $version;
* @return mixed
public function getSecretKey()
return $this->secretKey;
* @param mixed $secretKey
protected function setSecretKey($secretKey)
$this->secretKey = $secretKey;
public function __toString()
return sprintf('%s:v%s', $this->name, $this->version);