Payu\Component\Basket::getTotalPrice PHP Метод

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

Return Total Price of Basket
public getTotalPrice ( ) : double
Результат double
    public function getTotalPrice()
    {
        $sum = 0.0;
        /** @var $product \Payu\Component\Product */
        foreach ($this->collection as $product) {
            $sum += (int) $product->getQuantity() * (double) $product->getPrice();
        }
        return $sum;
    }