original_string: protected function validate_pobject($pobject) {
          if (!is_object($pobject)) {
              throw new convert_path_exception('convert_path_no_object', get_class($pobject));
          }
          if (!method_exists($pobject, $this->get_processing_method()) and
              !method_exists($pobject, $this->get_end_method()) and
              !method_exists($pobject, $this->get_start_method())) {
              throw new convert_path_exception('convert_path_missing_method', get_class($pobject));
          }
      }
code: protected function validate_pobject($pobject) {
          if (!is_object($pobject)) {
              throw new convert_path_exception('convert_path_no_object', get_class($pobject));
          }
          if (!method_exists($pobject, $this->get_processing_method()) and
              !method_exists($pobject, $this->get_end_method()) and
              !method_exists($pobject, $this->get_start_method())) {
              throw new convert_path_exception('convert_path_missing_method', get_class($pobject));
          }
      }
code_tokens: protected function validate_pobject ( $ pobject ) { if ( ! is_object ( $ pobject ) ) { throw new convert_path_exception ( 'convert_path_no_object' , get_class ( $ pobject ) ) ; } if ( ! method_exists ( $ pobject , $ this -> get_processing_method ( ) ) and ! method_exists ( $ pobject , $ this -> get_end_method ( ) ) and ! method_exists ( $ pobject , $ this -> get_start_method ( ) ) ) { throw new convert_path_exception ( 'convert_path_missing_method' , get_class ( $ pobject ) ) ; } }
docstring: Makes sure that the given object is a valid processing object
  
  The processing object must be an object providing at least element's processing method
  or path-reached-end event listener or path-reached-start listener method.
  
  Note it may look as if we used exceptions for code flow control here. That's not the case
  as we actually validate the code, not the user data. And the code is supposed to be
  correct.
  
  @param object $pobject
  @throws convert_path_exception
  @return void
docstring_tokens: Makes sure that the given object is a valid processing object