original_string: public function calculateItemsTotal()
      {
          $itemsTotal = 0;
  
          foreach ($this->items as $item) {
              $itemsTotal += $item->getTotal();
          }
  
          $this->itemsTotal = $itemsTotal;
  
          return $this;
      }
code: public function calculateItemsTotal()
      {
          $itemsTotal = 0;
  
          foreach ($this->items as $item) {
              $itemsTotal += $item->getTotal();
          }
  
          $this->itemsTotal = $itemsTotal;
  
          return $this;
      }
code_tokens: public function calculateItemsTotal ( ) { $ itemsTotal = 0 ; foreach ( $ this -> items as $ item ) { $ itemsTotal += $ item -> getTotal ( ) ; } $ this -> itemsTotal = $ itemsTotal ; return $ this ; }
docstring: Calculate the total price for all the items
  
  @return $this
docstring_tokens: Calculate the total price for all the items