original_string: protected  function invoke($method_name, $request_method, array $arguments = []){
          $method_name = strtolower($request_method).'_'.$this->str->to_snake_case($method_name);
          // Check if method exists
          if( !is_callable([$this, $method_name]) ){
              return false;
          }
          // Check accessibility
          $reflection = new \ReflectionMethod($this, $method_name);
          if( !$reflection->isPublic() || $reflection->isStatic() ){
              return false;
          }
          // Check required arguments length
          if( $reflection->getNumberOfRequiredParameters() > count($arguments) ){
              return false;
          }
          // O.K. It's public method. Call it.
          $this->handle_result(call_user_func_array([$this, $method_name], $arguments));
          return true;
      }
code: protected  function invoke($method_name, $request_method, array $arguments = []){
          $method_name = strtolower($request_method).'_'.$this->str->to_snake_case($method_name);
          // Check if method exists
          if( !is_callable([$this, $method_name]) ){
              return false;
          }
          // Check accessibility
          $reflection = new \ReflectionMethod($this, $method_name);
          if( !$reflection->isPublic() || $reflection->isStatic() ){
              return false;
          }
          // Check required arguments length
          if( $reflection->getNumberOfRequiredParameters() > count($arguments) ){
              return false;
          }
          // O.K. It's public method. Call it.
          $this->handle_result(call_user_func_array([$this, $method_name], $arguments));
          return true;
      }
code_tokens: protected function invoke ( $ method_name , $ request_method , array $ arguments = [ ] ) { $ method_name = strtolower ( $ request_method ) . '_' . $ this -> str -> to_snake_case ( $ method_name ) ; // Check if method exists if ( ! is_callable ( [ $ this , $ method_name ] ) ) { return false ; } // Check accessibility $ reflection = new \ ReflectionMethod ( $ this , $ method_name ) ; if ( ! $ reflection -> isPublic ( ) || $ reflection -> isStatic ( ) ) { return false ; } // Check required arguments length if ( $ reflection -> getNumberOfRequiredParameters ( ) > count ( $ arguments ) ) { return false ; } // O.K. It's public method. Call it. $ this -> handle_result ( call_user_func_array ( [ $ this , $ method_name ] , $ arguments ) ) ; return true ; }
docstring: Search method and execute if exists.
  
  @param string $method_name
  @param string $request_method
  @param array $arguments
  @return bool
docstring_tokens: Search method and execute if exists .