mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Add method to check if an API exists for a given name
This commit is contained in:
20
module/Core/src/Repository/EntityRepositoryInterface.php
Normal file
20
module/Core/src/Repository/EntityRepositoryInterface.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Shlinkio\Shlink\Core\Repository;
|
||||
|
||||
use Doctrine\Persistence\ObjectRepository;
|
||||
|
||||
/**
|
||||
* @template T of object
|
||||
* @extends ObjectRepository<T>
|
||||
*/
|
||||
interface EntityRepositoryInterface extends ObjectRepository
|
||||
{
|
||||
/**
|
||||
* @todo This should be part of ObjectRepository, so adding here until that interface defines it.
|
||||
* EntityRepository already implements the method, so classes extending it won't have to add anything.
|
||||
*/
|
||||
public function count(array $criteria = []): int;
|
||||
}
|
||||
Reference in New Issue
Block a user