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