original_string: public function getGrandTotalAttribute()
      {
          if (!$this->deliveryOption) return $this->total;
  
          return (float) round($this->total + $this->deliveryOption->price, 2);
      }
code: public function getGrandTotalAttribute()
      {
          if (!$this->deliveryOption) return $this->total;
  
          return (float) round($this->total + $this->deliveryOption->price, 2);
      }
code_tokens: public function getGrandTotalAttribute ( ) { if ( ! $ this -> deliveryOption ) return $ this -> total ; return ( float ) round ( $ this -> total + $ this -> deliveryOption -> price , 2 ) ; }
docstring: Calculate grand total in respect to quantity and delivery.
  
  @return float
docstring_tokens: Calculate grand total in respect to quantity and delivery .