2019-09-30 20:42:27 +03:00
|
|
|
<?php
|
2019-10-05 18:26:10 +03:00
|
|
|
|
2019-09-30 20:42:27 +03:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Shlinkio\Shlink\Core\Entity;
|
|
|
|
|
2020-02-02 10:57:04 +03:00
|
|
|
use JsonSerializable;
|
2019-09-30 20:42:27 +03:00
|
|
|
use Shlinkio\Shlink\Common\Entity\AbstractEntity;
|
|
|
|
|
2020-02-02 10:57:04 +03:00
|
|
|
class Domain extends AbstractEntity implements JsonSerializable
|
2019-09-30 20:42:27 +03:00
|
|
|
{
|
2021-05-23 12:57:31 +03:00
|
|
|
public function __construct(private string $authority)
|
2019-09-30 20:42:27 +03:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getAuthority(): string
|
|
|
|
{
|
|
|
|
return $this->authority;
|
|
|
|
}
|
2020-02-02 10:57:04 +03:00
|
|
|
|
|
|
|
public function jsonSerialize(): string
|
|
|
|
{
|
|
|
|
return $this->getAuthority();
|
|
|
|
}
|
2019-09-30 20:42:27 +03:00
|
|
|
}
|