Skip to content

Commit

Permalink
Improve get method phpdoc (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz authored Mar 29, 2024
1 parent 9ce5e6f commit 107de86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Service/EntityProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ interface EntityProviderInterface
/**
* Get/load entity by unique key/value pair.
*
* @template TEntity
* @template TEntity of object
*
* @param class-string<TEntity>|string $role Entity role or class name.
* @param array $scope KV pair to locate the model, currently only support one pair.
*
* @psalm-return ($role is class-string ? TEntity : object)|null
* @return ($role is class-string<TEntity> ? TEntity|null : object|null)
*/
public function get(string $role, array $scope, bool $load = true): ?object;
}

0 comments on commit 107de86

Please sign in to comment.