Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Resource.php
Go to the documentation of this file.
1 <?php
26 #require_once 'Zend/Acl/Resource/Interface.php';
27 
28 
36 {
42  protected $_resourceId;
43 
49  public function __construct($resourceId)
50  {
51  $this->_resourceId = (string) $resourceId;
52  }
53 
59  public function getResourceId()
60  {
61  return $this->_resourceId;
62  }
63 
70  public function __toString()
71  {
72  return $this->getResourceId();
73  }
74 }
__construct($resourceId)
Definition: Resource.php:49