original_string: public function createLineItemForProduct(Product $product)
      {
          $lineItem = new OrderLineItem();
          $lineItem->setProduct($product);
  
          // Don't assume any quantity here
          // We will add it later
          $lineItem->setQuantity(0);
  
          $this->addLineItem($lineItem);
  
          // Copy SellerWindow
          if ($this->getSellerWindow()) {
              $lineItem->setSellerWindow($this->getSellerWindow());
          }
  
          return $lineItem;
      }
code: public function createLineItemForProduct(Product $product)
      {
          $lineItem = new OrderLineItem();
          $lineItem->setProduct($product);
  
          // Don't assume any quantity here
          // We will add it later
          $lineItem->setQuantity(0);
  
          $this->addLineItem($lineItem);
  
          // Copy SellerWindow
          if ($this->getSellerWindow()) {
              $lineItem->setSellerWindow($this->getSellerWindow());
          }
  
          return $lineItem;
      }
code_tokens: public function createLineItemForProduct ( Product $ product ) { $ lineItem = new OrderLineItem ( ) ; $ lineItem -> setProduct ( $ product ) ; // Don't assume any quantity here // We will add it later $ lineItem -> setQuantity ( 0 ) ; $ this -> addLineItem ( $ lineItem ) ; // Copy SellerWindow if ( $ this -> getSellerWindow ( ) ) { $ lineItem -> setSellerWindow ( $ this -> getSellerWindow ( ) ) ; } return $ lineItem ; }
docstring: Create OrderLineItem for given Product
  
  @author Tom Haskins-Vaughan <tom@harvestcloud.com>
  @since  2012-04-10
  
  @todo  Work out better default quantity
  
  @param  HarvestCloud\CoreBundle\Entity\Product
  
  @return HarvestCloud\CoreBundle\Entity\OrderLineItem
docstring_tokens: Create OrderLineItem for given Product