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: public function getAcl();
30:
31: /**
32: * The primary key of this ACE
33: *
34: * @return int
35: */
36: public function getId();
37:
38: /**
39: * The permission mask of this ACE
40: *
41: * @return int
42: */
43: public function getMask();
44:
45: /**
46: * The security identity associated with this ACE
47: *
48: * @return SecurityIdentityInterface
49: */
50: public function getSecurityIdentity();
51:
52: /**
53: * The strategy for comparing masks
54: *
55: * @return string
56: */
57: public function getStrategy();
58:
59: /**
60: * Returns whether this ACE is granting, or denying
61: *
62: * @return bool
63: */
64: public function isGranting();
65: }
66: