mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-03 13:43:13 +08:00
26 lines
583 B
PHP
26 lines
583 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Core\Domain;
|
|
|
|
use Shlinkio\Shlink\Core\Domain\Model\DomainItem;
|
|
use Shlinkio\Shlink\Core\Entity\Domain;
|
|
use Shlinkio\Shlink\Core\Exception\DomainNotFoundException;
|
|
use Shlinkio\Shlink\Rest\Entity\ApiKey;
|
|
|
|
interface DomainServiceInterface
|
|
{
|
|
/**
|
|
* @return DomainItem[]
|
|
*/
|
|
public function listDomains(?ApiKey $apiKey = null): array;
|
|
|
|
/**
|
|
* @throws DomainNotFoundException
|
|
*/
|
|
public function getDomain(string $domainId): Domain;
|
|
|
|
public function getOrCreate(string $authority): Domain;
|
|
}
|