mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-17 08:32:04 +03:00
25 lines
469 B
PHP
25 lines
469 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
|
|
{
|
|
public function __construct(private string $authority)
|
|
{
|
|
}
|
|
|
|
public function getAuthority(): string
|
|
{
|
|
return $this->authority;
|
|
}
|
|
|
|
public function jsonSerialize(): string
|
|
{
|
|
return $this->getAuthority();
|
|
}
|
|
}
|