Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
Zend_Acl_Role Class Reference
Inheritance diagram for Zend_Acl_Role:
Zend_Acl_Role_Interface Generic Group User

Public Member Functions

 __construct ($roleId)
 
 getRoleId ()
 
 __toString ()
 

Protected Attributes

 $_roleId
 

Detailed Description

Definition at line 35 of file Role.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $roleId)

Sets the Role identifier

Parameters
string$roleId

Definition at line 49 of file Role.php.

50  {
51  $this->_roleId = (string) $roleId;
52  }
$roleId
Definition: webapi_user.php:22

Member Function Documentation

◆ __toString()

__toString ( )

Defined by Zend_Acl_Role_Interface; returns the Role identifier Proxies to getRoleId()

Returns
string

Definition at line 70 of file Role.php.

71  {
72  return $this->getRoleId();
73  }
getRoleId()
Definition: Role.php:59

◆ getRoleId()

getRoleId ( )

Defined by Zend_Acl_Role_Interface; returns the Role identifier

Returns
string

Implements Zend_Acl_Role_Interface.

Definition at line 59 of file Role.php.

60  {
61  return $this->_roleId;
62  }

Field Documentation

◆ $_roleId

$_roleId
protected

Definition at line 42 of file Role.php.


The documentation for this class was generated from the following file: