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.
31 lines
641 B
PHP
31 lines
641 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Kartierung\Analyze;
|
|
|
|
use Kartierung\Attribute\ListOf;
|
|
use Kartierung\Attribute\Query;
|
|
use Kartierung\FullEntity;
|
|
|
|
interface Repository
|
|
{
|
|
#[Query("SELECT something")]
|
|
public function fetchWithQuery(): FullEntity;
|
|
|
|
#[Query("SELECT something")]
|
|
#[ListOf(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;
|
|
}
|