for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Shlinkio\Shlink\Core\Options;
use Shlinkio\Shlink\Common\Util\StringUtilsTrait;
use Zend\Stdlib\AbstractOptions;
use function sprintf;
class AppOptions extends AbstractOptions
{
use StringUtilsTrait;
/** @var string */
private $name = '';
private $version = '1.0';
/**
* @var string
* @deprecated
*/
private $secretKey = '';
/** @var string|null */
private $disableTrackParam;
public function getName(): string
return $this->name;
}
protected function setName(string $name): self
$this->name = $name;
return $this;
public function getVersion(): string
return $this->version;
protected function setVersion(string $version): self
$this->version = $version;
public function getSecretKey(): string
return $this->secretKey;
Shlinkio\Shlink\Core\Opt...\AppOptions::$secretKey
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
ignore-deprecated
return /** @scrutinizer ignore-deprecated */ $this->secretKey;
protected function setSecretKey(string $secretKey): self
$this->secretKey = $secretKey;
/** @scrutinizer ignore-deprecated */ $this->secretKey = $secretKey;
* @return string|null
public function getDisableTrackParam(): ?string
return $this->disableTrackParam;
protected function setDisableTrackParam(?string $disableTrackParam): self
$this->disableTrackParam = $disableTrackParam;
public function __toString(): string
return sprintf('%s:v%s', $this->name, $this->version);