original_string: public function setEntityFactory(EntityFactory $factory = null)
      {
          if ($factory === null) {
              $factory = new Entity();
          }
          $this->factory = $factory;
          return $this;
      }
code: public function setEntityFactory(EntityFactory $factory = null)
      {
          if ($factory === null) {
              $factory = new Entity();
          }
          $this->factory = $factory;
          return $this;
      }
code_tokens: public function setEntityFactory ( EntityFactory $ factory = null ) { if ( $ factory === null ) { $ factory = new Entity ( ) ; } $ this -> factory = $ factory ; return $ this ; }
docstring: Sets the Entity Factory which will create the Entities from Responses
  @param EntityFactory $factory
  @return $this
docstring_tokens: Sets the Entity Factory which will create the Entities from Responses