original_string: public function calculateTotal()
      {
          $this->calculateAdjustmentsTotal();
  
          $this->total = ($this->quantity * $this->unitPrice) + $this->adjustmentsTotal;
  
          if ($this->total < 0) {
              $this->total = 0;
          }
  
          return $this;
      }
code: public function calculateTotal()
      {
          $this->calculateAdjustmentsTotal();
  
          $this->total = ($this->quantity * $this->unitPrice) + $this->adjustmentsTotal;
  
          if ($this->total < 0) {
              $this->total = 0;
          }
  
          return $this;
      }
code_tokens: public function calculateTotal ( ) { $ this -> calculateAdjustmentsTotal ( ) ; $ this -> total = ( $ this -> quantity * $ this -> unitPrice ) + $ this -> adjustmentsTotal ; if ( $ this -> total < 0 ) { $ this -> total = 0 ; } return $ this ; }
docstring: Calculates the total for the item
  
  @return $this
docstring_tokens: Calculates the total for the item