You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
618 B
PHP

<?php
declare(strict_types=1);
namespace Kartierung;
use Kartierung\Attribute\ListResultOf;
use Kartierung\Attribute\Query;
interface Repository
{
#[Query("SELECT something")]
public function fetchWithQuery(): FullEntity;
#[Query("SELECT something")]
#[ListResultOf(FullEntity::class)]
public function fetchArray(): array;
#[Query("SELECT something")]
public function insert(): void;
#[Query("SELECT something")]
public function doSomethingWithParameters(
string $stringParam,
int $intParam
): void;
public function findById(int $id): ?FullEntity;
}