original_string: public function createProductAPI($url)
      {
          $api = new Product($url);
          if (!$this->getHttpClient()) {
              $this->setHttpClient();
          }
          if (!$this->getEntityFactory()) {
              $this->setEntityFactory();
          }
          return $api->registerDiffbot($this);
      }
code: public function createProductAPI($url)
      {
          $api = new Product($url);
          if (!$this->getHttpClient()) {
              $this->setHttpClient();
          }
          if (!$this->getEntityFactory()) {
              $this->setEntityFactory();
          }
          return $api->registerDiffbot($this);
      }
code_tokens: public function createProductAPI ( $ url ) { $ api = new Product ( $ url ) ; if ( ! $ this -> getHttpClient ( ) ) { $ this -> setHttpClient ( ) ; } if ( ! $ this -> getEntityFactory ( ) ) { $ this -> setEntityFactory ( ) ; } return $ api -> registerDiffbot ( $ this ) ; }
docstring: Creates a Product API interface
  
  @param string $url Url to analyze
  @return Product
docstring_tokens: Creates a Product API interface