original_string: protected function findObjectMessageFactory($message) : ObjectMessageFactory
      {
          $messageClass = get_class($message);
          foreach ($this->objectMessageFactories as $class => $factory) {
              if ($class === $messageClass) {
                  return $factory;
              }
          }
          return $this->defaultObjectMessageFactory;
      }
code: protected function findObjectMessageFactory($message) : ObjectMessageFactory
      {
          $messageClass = get_class($message);
          foreach ($this->objectMessageFactories as $class => $factory) {
              if ($class === $messageClass) {
                  return $factory;
              }
          }
          return $this->defaultObjectMessageFactory;
      }
code_tokens: protected function findObjectMessageFactory ( $ message ) : ObjectMessageFactory { $ messageClass = get_class ( $ message ) ; foreach ( $ this -> objectMessageFactories as $ class => $ factory ) { if ( $ class === $ messageClass ) { return $ factory ; } } return $ this -> defaultObjectMessageFactory ; }
docstring: Finds the appropriate message factory for the given message.
  
  @param $message
  @return ObjectMessageFactory
docstring_tokens: Finds the appropriate message factory for the given message .