EntryInterface.php 1.3 KB

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