1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (https://nette.org)
5: * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
6: */
7:
8: namespace Nette\Security;
9:
10:
11: /**
12: * Represents the user of application.
13: */
14: interface IIdentity
15: {
16:
17: /**
18: * Returns the ID of user.
19: * @return mixed
20: */
21: function getId();
22:
23: /**
24: * Returns a list of roles that the user is a member of.
25: * @return array
26: */
27: function getRoles();
28: }
29: