fix: Add more typing informations.

This commit is contained in:
Pol Dellaiera 2021-11-18 15:23:44 +01:00
parent 17ef963924
commit d1935f96e7
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA
3 changed files with 7 additions and 3 deletions

View File

@ -22,6 +22,7 @@ final class CenterResolverDispatcher
}
/**
* @param object $entity
* @return null|Center|Center[]
*/
public function resolveCenter($entity, ?array $options = [])

View File

@ -6,12 +6,14 @@ use Chill\MainBundle\Entity\Center;
interface CenterResolverInterface
{
/**
* @param object $entity
*/
public function supports($entity, ?array $options = []): bool;
/**
* @param $entity
* @param array|null $options
* @return Center|array|Center[]
* @param object $entity
* @return Center|Center[]
*/
public function resolveCenter($entity, ?array $options = []);

View File

@ -9,6 +9,7 @@ use Chill\MainBundle\Entity\Center;
interface CenterResolverManagerInterface
{
/**
* @param object $entity
* @return Center[]
*/
public function resolveCenters($entity, ?array $options = []): array;