RootResource.php 617 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Root ACL Resource
  4. *
  5. * Copyright © Magento, Inc. All rights reserved.
  6. * See COPYING.txt for license details.
  7. */
  8. namespace Magento\Framework\Acl;
  9. /**
  10. * @api
  11. * @since 100.0.2
  12. */
  13. class RootResource
  14. {
  15. /**
  16. * Root resource id
  17. *
  18. * @var string
  19. */
  20. protected $_identifier;
  21. /**
  22. * @param string $identifier
  23. */
  24. public function __construct($identifier)
  25. {
  26. $this->_identifier = $identifier;
  27. }
  28. /**
  29. * Retrieve root resource id
  30. *
  31. * @return string
  32. */
  33. public function getId()
  34. {
  35. return $this->_identifier;
  36. }
  37. }