Base de ingrédient terminé
This commit is contained in:
13
src/Domain/LinkableInterface.php
Normal file
13
src/Domain/LinkableInterface.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain;
|
||||
|
||||
interface LinkableInterface {
|
||||
|
||||
public function getIdLinkedTo( string $linkedTo, string $linkingField, Model $linkedEntity ): ?array;
|
||||
|
||||
public function addLinkBetween( string $linkedTo, string $linkingField, Model $linkedEntity, Model $entity ): bool;
|
||||
|
||||
public function removeLinkBetween( string $linkedTo, string $linkingField, Model $linkedEntity, Model $entity ): bool;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user