mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-03 22:03:13 +08:00
29 lines
532 B
PHP
29 lines
532 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Core\Entity;
|
|
|
|
use JsonSerializable;
|
|
use Shlinkio\Shlink\Common\Entity\AbstractEntity;
|
|
|
|
class Domain extends AbstractEntity implements JsonSerializable
|
|
{
|
|
private string $authority;
|
|
|
|
public function __construct(string $authority)
|
|
{
|
|
$this->authority = $authority;
|
|
}
|
|
|
|
public function getAuthority(): string
|
|
{
|
|
return $this->authority;
|
|
}
|
|
|
|
public function jsonSerialize(): string
|
|
{
|
|
return $this->getAuthority();
|
|
}
|
|
}
|