Role.php 769 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. *
  4. * Cube Framework $Id$ cGuCBhnK3ZR7LfiaTh/+jKws/xh/4x1YgXlJUzmIQgs=
  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 role class
  14. */
  15. namespace Cube\Permissions;
  16. class Role implements RoleInterface
  17. {
  18. /**
  19. *
  20. * role id
  21. *
  22. * @var string
  23. */
  24. protected $_id;
  25. /**
  26. *
  27. * class constructor
  28. *
  29. * @param string $id
  30. */
  31. public function __construct($id)
  32. {
  33. $this->_id = (string) $id;
  34. }
  35. /**
  36. *
  37. * get role id
  38. *
  39. * @return string
  40. */
  41. public function getId()
  42. {
  43. return $this->_id;
  44. }
  45. }