AssertInterface.php 803 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. *
  4. * Cube Framework $Id$ d1x3C0cC0toW7s9QZYtHM0x9jN11s3RLXaCXaKUnHgU=
  5. *
  6. * @link http://codecu.be/framework
  7. * @copyright Copyright (c) 2014 CodeCube SRL
  8. * @license http://codecu.be/framework/license Commercial License
  9. *
  10. * @version 1.0
  11. */
  12. /**
  13. * acl assertion interface
  14. * used for custom acl assertions
  15. */
  16. namespace Cube\Permissions;
  17. interface AssertInterface
  18. {
  19. /**
  20. *
  21. * set up a custom acl assertion
  22. *
  23. * @param \Cube\Permissions\Acl $acl
  24. * @param \Cube\Permissions\RoleInterface $role
  25. * @param \Cube\Permissions\ResourceInterface $resource
  26. * @param string $privilege
  27. * @return bool
  28. */
  29. public function assert(Acl $acl, RoleInterface $role = null, ResourceInterface $resource = null, $privilege = null);
  30. }