1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- /**
- *
- * Cube Framework $Id$ d1x3C0cC0toW7s9QZYtHM0x9jN11s3RLXaCXaKUnHgU=
- *
- * @link http://codecu.be/framework
- * @copyright Copyright (c) 2014 CodeCube SRL
- * @license http://codecu.be/framework/license Commercial License
- *
- * @version 1.0
- */
- /**
- * acl assertion interface
- * used for custom acl assertions
- */
- namespace Cube\Permissions;
- interface AssertInterface
- {
- /**
- *
- * set up a custom acl assertion
- *
- * @param \Cube\Permissions\Acl $acl
- * @param \Cube\Permissions\RoleInterface $role
- * @param \Cube\Permissions\ResourceInterface $resource
- * @param string $privilege
- * @return bool
- */
- public function assert(Acl $acl, RoleInterface $role = null, ResourceInterface $resource = null, $privilege = null);
- }
|