- trop de trucs d'un coup... je vais faire attention ensuite ^^'
This commit is contained in:
9
src/Interface/ClientInterface.php
Normal file
9
src/Interface/ClientInterface.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace App\Interface;
|
||||
|
||||
interface ClientInterface
|
||||
{
|
||||
public function get(string $endpoint, array $params = []): array;
|
||||
public function post(string $endpoint, array $data): array;
|
||||
}
|
||||
11
src/Interface/ContentProviderInterface.php
Normal file
11
src/Interface/ContentProviderInterface.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Interface;
|
||||
|
||||
use App\Entity\Manga;
|
||||
|
||||
interface ContentProviderInterface
|
||||
{
|
||||
public function getAvailableContent(Manga $manga): array;
|
||||
public function getContent(Manga $manga): array;
|
||||
}
|
||||
10
src/Interface/MetadataProviderInterface.php
Normal file
10
src/Interface/MetadataProviderInterface.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Interface;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
interface MetadataProviderInterface
|
||||
{
|
||||
public function search(string $title): Collection;
|
||||
}
|
||||
Reference in New Issue
Block a user