|
|
@ -4,13 +4,13 @@ namespace Repository;
|
|
|
|
interface IGenericRepository
|
|
|
|
interface IGenericRepository
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public function getItemById(int $id);
|
|
|
|
public function getItemById(int $id);
|
|
|
|
public function GetNbItems(): int;
|
|
|
|
public function getNbItems(): int;
|
|
|
|
public function GetItems(int $index, int $count, ?string $orderingPropertyName = null, bool $descending = false): array;
|
|
|
|
public function getItems(int $index, int $count, ?string $orderingPropertyName = null, bool $descending = false): array;
|
|
|
|
public function GetItemsByName(string $substring, int $index, int $count, ?string $orderingPropertyName = null, bool $descending = false): ?array;
|
|
|
|
public function getItemsByName(string $substring, int $index, int $count, ?string $orderingPropertyName = null, bool $descending = false): ?array;
|
|
|
|
public function GetItemByName(string $substring, int $index, int $count, ?string $orderingPropertyName = null, bool $descending = false);
|
|
|
|
public function getItemByName(string $substring, int $index, int $count, ?string $orderingPropertyName = null, bool $descending = false);
|
|
|
|
public function UpdateItem($oldItem, $newItem) : void;
|
|
|
|
public function updateItem($oldItem, $newItem) : void;
|
|
|
|
public function AddItem($item) : void;
|
|
|
|
public function addItem($item) : void;
|
|
|
|
public function DeleteItem($item): bool;
|
|
|
|
public function deleteItem($item): bool;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
?>
|