22 lines
409 B
PHP
22 lines
409 B
PHP
<?php
|
|
|
|
namespace App\Repositories;
|
|
|
|
use App\Models\Card;
|
|
use Illuminate\Database\Eloquent\Collection;
|
|
|
|
interface CardRepositoryInterface
|
|
{
|
|
public function all(): Collection;
|
|
|
|
public function find(int $id): ?Card;
|
|
|
|
public function create(array $data): Card;
|
|
|
|
public function update(int $id, array $data): ?Card;
|
|
|
|
public function delete(int $id): bool;
|
|
|
|
public function draw(): array;
|
|
}
|