WellCommerce\Bundle\ShippingBundle\Calculator\ShippingSubjectInterface::getGrossPrice PHP Метод

getGrossPrice() публичный Метод

public getGrossPrice ( ) : float
Результат float
    public function getGrossPrice() : float;

Usage Example

 public function calculate(ShippingMethodInterface $shippingMethod, ShippingSubjectInterface $subject) : Collection
 {
     $ranges = $shippingMethod->getCosts();
     $baseCurrency = $subject->getCurrency();
     $targetCurrency = $shippingMethod->getCurrency()->getCode();
     $grossAmount = $this->currencyConverter->convert($subject->getGrossPrice(), $baseCurrency, $targetCurrency);
     return $this->filterRanges($ranges, $grossAmount);
 }
All Usage Examples Of WellCommerce\Bundle\ShippingBundle\Calculator\ShippingSubjectInterface::getGrossPrice