Repo Interface für tests
This commit is contained in:
@@ -4,7 +4,7 @@ namespace MintyPHP\Repository\Search;
|
||||
|
||||
use MintyPHP\DB;
|
||||
|
||||
class SearchQueryRepository
|
||||
class SearchQueryRepository implements SearchQueryRepositoryInterface
|
||||
{
|
||||
/**
|
||||
* @param array<int, mixed> $params
|
||||
|
||||
17
lib/Repository/Search/SearchQueryRepositoryInterface.php
Normal file
17
lib/Repository/Search/SearchQueryRepositoryInterface.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace MintyPHP\Repository\Search;
|
||||
|
||||
interface SearchQueryRepositoryInterface
|
||||
{
|
||||
/**
|
||||
* @param array<int, mixed> $params
|
||||
* @return array<int, mixed>
|
||||
*/
|
||||
public function selectRows(string $sql, array $params = []): array;
|
||||
|
||||
/**
|
||||
* @param array<int, mixed> $params
|
||||
*/
|
||||
public function selectCount(string $sql, array $params = []): int;
|
||||
}
|
||||
Reference in New Issue
Block a user