1 | <?php |
||
20 | class Entry implements AuditableEntryInterface |
||
21 | { |
||
22 | private $acl; |
||
23 | private $mask; |
||
24 | private $id; |
||
25 | private $securityIdentity; |
||
26 | private $strategy; |
||
27 | private $auditFailure; |
||
28 | private $auditSuccess; |
||
29 | private $granting; |
||
30 | |||
31 | /** |
||
32 | * Constructor. |
||
33 | * |
||
34 | * @param int $id |
||
35 | * @param AclInterface $acl |
||
36 | * @param SecurityIdentityInterface $sid |
||
37 | * @param string $strategy |
||
38 | * @param int $mask |
||
39 | * @param bool $granting |
||
40 | * @param bool $auditFailure |
||
41 | * @param bool $auditSuccess |
||
42 | */ |
||
43 | public function __construct( |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function getAcl() |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function getMask() |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function getId() |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | public function getSecurityIdentity() |
||
94 | |||
95 | /** |
||
96 | * {@inheritdoc} |
||
97 | */ |
||
98 | public function getStrategy() |
||
102 | |||
103 | /** |
||
104 | * {@inheritdoc} |
||
105 | */ |
||
106 | public function isAuditFailure() |
||
110 | |||
111 | /** |
||
112 | * {@inheritdoc} |
||
113 | */ |
||
114 | public function isAuditSuccess() |
||
118 | |||
119 | /** |
||
120 | * {@inheritdoc} |
||
121 | */ |
||
122 | public function isGranting() |
||
126 | |||
127 | /** |
||
128 | * Turns on/off auditing on permissions denials. |
||
129 | * |
||
130 | * Do never call this method directly. Use the respective methods on the |
||
131 | * AclInterface instead. |
||
132 | * |
||
133 | * @param bool $boolean |
||
134 | */ |
||
135 | public function setAuditFailure($boolean) |
||
139 | |||
140 | /** |
||
141 | * Turns on/off auditing on permission grants. |
||
142 | * |
||
143 | * Do never call this method directly. Use the respective methods on the |
||
144 | * AclInterface instead. |
||
145 | * |
||
146 | * @param bool $boolean |
||
147 | */ |
||
148 | public function setAuditSuccess($boolean) |
||
152 | |||
153 | /** |
||
154 | * Sets the permission mask. |
||
155 | * |
||
156 | * Do never call this method directly. Use the respective methods on the |
||
157 | * AclInterface instead. |
||
158 | * |
||
159 | * @param int $mask |
||
160 | */ |
||
161 | public function setMask($mask) |
||
165 | |||
166 | /** |
||
167 | * Sets the mask comparison strategy. |
||
168 | * |
||
169 | * Do never call this method directly. Use the respective methods on the |
||
170 | * AclInterface instead. |
||
171 | * |
||
172 | * @param string $strategy |
||
173 | */ |
||
174 | public function setStrategy($strategy) |
||
178 | |||
179 | /** |
||
180 | * Implementation of \Serializable. |
||
181 | * |
||
182 | * @return string |
||
183 | */ |
||
184 | public function serialize() |
||
197 | |||
198 | /** |
||
199 | * Implementation of \Serializable. |
||
200 | * |
||
201 | * @param string $serialized |
||
202 | */ |
||
203 | public function unserialize($serialized) |
||
214 | } |
||
215 |