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