1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
- declare(strict_types=1);
- namespace Shlinkio\Shlink\Core\Options;
- use Laminas\Stdlib\AbstractOptions;
- class NotFoundRedirectOptions extends AbstractOptions
- {
- private ?string $invalidShortUrl = null;
- private ?string $regular404 = null;
- private ?string $baseUrl = null;
- public function getInvalidShortUrlRedirect(): ?string
- {
- return $this->invalidShortUrl;
- }
- public function hasInvalidShortUrlRedirect(): bool
- {
- return $this->invalidShortUrl !== null;
- }
- protected function setInvalidShortUrl(?string $invalidShortUrl): self
- {
- $this->invalidShortUrl = $invalidShortUrl;
- return $this;
- }
- public function getRegular404Redirect(): ?string
- {
- return $this->regular404;
- }
- public function hasRegular404Redirect(): bool
- {
- return $this->regular404 !== null;
- }
- protected function setRegular404(?string $regular404): self
- {
- $this->regular404 = $regular404;
- return $this;
- }
- public function getBaseUrlRedirect(): ?string
- {
- return $this->baseUrl;
- }
- public function hasBaseUrlRedirect(): bool
- {
- return $this->baseUrl !== null;
- }
- protected function setBaseUrl(?string $baseUrl): self
- {
- $this->baseUrl = $baseUrl;
- return $this;
- }
- }
|