1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- declare(strict_types=1);
- namespace Shlinkio\Shlink\Core\Options;
- use Laminas\Stdlib\AbstractOptions;
- use Shlinkio\Shlink\Common\Util\StringUtilsTrait;
- use function sprintf;
- class AppOptions extends AbstractOptions
- {
- use StringUtilsTrait;
- private string $name = '';
- private string $version = '1.0';
- private ?string $disableTrackParam = null;
- 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;
- return $this;
- }
- /**
- */
- public function getDisableTrackParam(): ?string
- {
- return $this->disableTrackParam;
- }
- protected function setDisableTrackParam(?string $disableTrackParam): self
- {
- $this->disableTrackParam = $disableTrackParam;
- return $this;
- }
- public function __toString(): string
- {
- return sprintf('%s:v%s', $this->name, $this->version);
- }
- }
|