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
|
|
|
{
|
2019-12-30 00:27:00 +03:00
|
|
|
private string $authority;
|
2019-09-30 20:42:27 +03:00
|
|
|
|
|
|
|
public function __construct(string $authority)
|
|
|
|
{
|
|
|
|
$this->authority = $authority;
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|