equal
deleted
inserted
replaced
|
1 <?php |
|
2 |
|
3 /* |
|
4 * This file is part of the Symfony package. |
|
5 * |
|
6 * (c) Fabien Potencier <fabien@symfony.com> |
|
7 * |
|
8 * For the full copyright and license information, please view the LICENSE |
|
9 * file that was distributed with this source code. |
|
10 */ |
|
11 |
|
12 namespace Symfony\Component\Security\Acl\Model; |
|
13 |
|
14 /** |
|
15 * This class represents an individual entry in the ACL list. |
|
16 * |
|
17 * Instances MUST be immutable, as they are returned by the ACL and should not |
|
18 * allow client modification. |
|
19 * |
|
20 * @author Johannes M. Schmitt <schmittjoh@gmail.com> |
|
21 */ |
|
22 interface EntryInterface extends \Serializable |
|
23 { |
|
24 /** |
|
25 * The ACL this ACE is associated with. |
|
26 * |
|
27 * @return AclInterface |
|
28 */ |
|
29 function getAcl(); |
|
30 |
|
31 /** |
|
32 * The primary key of this ACE |
|
33 * |
|
34 * @return integer |
|
35 */ |
|
36 function getId(); |
|
37 |
|
38 /** |
|
39 * The permission mask of this ACE |
|
40 * |
|
41 * @return integer |
|
42 */ |
|
43 function getMask(); |
|
44 |
|
45 /** |
|
46 * The security identity associated with this ACE |
|
47 * |
|
48 * @return SecurityIdentityInterface |
|
49 */ |
|
50 function getSecurityIdentity(); |
|
51 |
|
52 /** |
|
53 * The strategy for comparing masks |
|
54 * |
|
55 * @return string |
|
56 */ |
|
57 function getStrategy(); |
|
58 |
|
59 /** |
|
60 * Returns whether this ACE is granting, or denying |
|
61 * |
|
62 * @return Boolean |
|
63 */ |
|
64 function isGranting(); |
|
65 } |