original_string: public function getRole($role) {
  		
  		if(false === is_string($role)) {
  			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($role)), E_USER_ERROR);
  		}
  
  		foreach($this -> permissions as $type => $resources) {
  
  			if($role === $type) {
  				
  				$p = new Resources();
  				$p -> setResources($resources);
  
  				return $p;
  			}
  		}
  
  		return null;
  	}
code: public function getRole($role) {
  		
  		if(false === is_string($role)) {
  			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($role)), E_USER_ERROR);
  		}
  
  		foreach($this -> permissions as $type => $resources) {
  
  			if($role === $type) {
  				
  				$p = new Resources();
  				$p -> setResources($resources);
  
  				return $p;
  			}
  		}
  
  		return null;
  	}
code_tokens: public function getRole ( $ role ) { if ( false === is_string ( $ role ) ) { return trigger_error ( sprintf ( 'Argument 1 passed to %s() must be of the type string, "%s" given' , __METHOD__ , gettype ( $ role ) ) , E_USER_ERROR ) ; } foreach ( $ this -> permissions as $ type => $ resources ) { if ( $ role === $ type ) { $ p = new Resources ( ) ; $ p -> setResources ( $ resources ) ; return $ p ; } } return null ; }
docstring: Returns the roles in array
  @return array
docstring_tokens: Returns the roles in array