original_string: protected function _getRole($roleField)
      {
          $role = $this->_getVar($roleField);
          if (intval($role)) {
             $role = \Gems_Roles::getInstance()->translateToRoleName($role);
  
             $this->_setVar($roleField, $role);
          }
  
          return $role;
      }
code: protected function _getRole($roleField)
      {
          $role = $this->_getVar($roleField);
          if (intval($role)) {
             $role = \Gems_Roles::getInstance()->translateToRoleName($role);
  
             $this->_setVar($roleField, $role);
          }
  
          return $role;
      }
code_tokens: protected function _getRole ( $ roleField ) { $ role = $ this -> _getVar ( $ roleField ) ; if ( intval ( $ role ) ) { $ role = \ Gems_Roles :: getInstance ( ) -> translateToRoleName ( $ role ) ; $ this -> _setVar ( $ roleField , $ role ) ; } return $ role ; }
docstring: Get a role with a check on the value in case of integers
  
  @param string $roleField
  @return mixed
docstring_tokens: Get a role with a check on the value in case of integers