You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
710 B
16 lines
710 B
<?php
|
|
namespace Repository;
|
|
|
|
interface IGenericRepository
|
|
{
|
|
public function getItemById(int $id);
|
|
public function getNbItems(): int;
|
|
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 getItemByName(string $substring, int $index, int $count, ?string $orderingPropertyName = null, bool $descending = false);
|
|
public function updateItem($oldItem, $newItem) : void;
|
|
public function addItem($item) : void;
|
|
public function deleteItem($item): bool;
|
|
}
|
|
|
|
?>
|