Scalr\Api\Service\User\V1beta0\Controller\RoleScripts::getRole PHP Method

getRole() public method

Gets role from database using User's Environment
public getRole ( integer $roleId, boolean $modify = false ) : Role | null
$roleId integer The identifier of the Role
$modify boolean optional Flag checking write permissions
return Scalr\Model\Entity\Role | null
    public function getRole($roleId, $modify = false)
    {
        if (empty($this->roleController)) {
            $this->roleController = $this->getContainer()->api->controller(static::$roleControllerClass);
        }
        return $this->roleController->getRole($roleId, $modify);
    }