1: <?php
2:
3: namespace ProgrammingAreHard\Arbiter\Model;
4:
5: use Symfony\Component\Security\Core\User\UserInterface;
6:
7: interface IdentityFactoryInterface
8: {
9: /**
10: * Get object identity.
11: *
12: * @return \Symfony\Component\Security\Acl\Model\ObjectIdentityInterface
13: */
14: public function getObjectIdentity($object);
15:
16: /**
17: * Get user identity.
18: *
19: * @return \Symfony\Component\Security\Acl\Model\SecurityIdentityInterface
20: */
21: public function getUserIdentity(UserInterface $user);
22: }