1: <?php declare(strict_types=1);
2:
3: namespace Salient\Contract\Sync;
4:
5: /**
6: * Resolves a name to an entity
7: *
8: * @template TEntity of SyncEntityInterface
9: */
10: interface SyncEntityResolverInterface
11: {
12: /**
13: * Resolve a name to an entity
14: *
15: * @return TEntity|null
16: */
17: public function getByName(
18: string $name,
19: ?float &$uncertainty = null
20: ): ?SyncEntityInterface;
21: }
22: