original_string: public function isAllowed($role, $resource) {
  
  		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);
  		}
  
  		if(false === is_string($resource)) {
  			return trigger_error(sprintf('Argument 2 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($resource)), E_USER_ERROR);
  		}
  
  		if(true === isset($this -> permissions[$role][$resource])) {
  			return $this -> permissions[$role][$resource];
  		}
  
  		return false;
  	}
code: public function isAllowed($role, $resource) {
  
  		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);
  		}
  
  		if(false === is_string($resource)) {
  			return trigger_error(sprintf('Argument 2 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($resource)), E_USER_ERROR);
  		}
  
  		if(true === isset($this -> permissions[$role][$resource])) {
  			return $this -> permissions[$role][$resource];
  		}
  
  		return false;
  	}
code_tokens: public function isAllowed ( $ role , $ resource ) { 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 ) ; } if ( false === is_string ( $ resource ) ) { return trigger_error ( sprintf ( 'Argument 2 passed to %s() must be of the type string, "%s" given' , __METHOD__ , gettype ( $ resource ) ) , E_USER_ERROR ) ; } if ( true === isset ( $ this -> permissions [ $ role ] [ $ resource ] ) ) { return $ this -> permissions [ $ role ] [ $ resource ] ; } return false ; }
docstring: Returns if a role is allowed access to the resource
  @param string $role
  @param string $resource
  @return boolean
docstring_tokens: Returns if a role is allowed access to the resource