mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-14 05:55:54 +00:00
23 lines
589 B
PHP
23 lines
589 B
PHP
<?php
|
|
|
|
namespace App\Contracts;
|
|
|
|
use React\Promise\PromiseInterface;
|
|
|
|
interface HostnameRepository
|
|
{
|
|
public function getHostnames(): PromiseInterface;
|
|
|
|
public function getHostnameById($id): PromiseInterface;
|
|
|
|
public function getHostnameByName(string $name): PromiseInterface;
|
|
|
|
public function getHostnamesByUserId($id): PromiseInterface;
|
|
|
|
public function getHostnamesByUserIdAndName($id, $name): PromiseInterface;
|
|
|
|
public function deleteHostnameForUserId($userId, $hostnameId): PromiseInterface;
|
|
|
|
public function storeHostname(array $data): PromiseInterface;
|
|
}
|