Rabbi_Gerzi/backend/app/Set/SetRepository.php

25 lines
430 B
PHP

<?php
namespace App\Set;
interface SetRepository
{
public function create(CreateSetDto $dto): Set;
public function update(Set $set): Set;
public function delete(Set $set): void;
public function find(int $id): ?Set;
/**
* @return Set[]
*/
public function getAll(): array;
/**
* @param int[] $setIds
* @return Set[]
*/
public function reorder(array $setIds): array;
}