getCosts() public méthode

public getCosts ( WellCommerce\Bundle\ShippingBundle\Calculator\ShippingSubjectInterface $subject ) : Doctrine\Common\Collections\Collection
$subject WellCommerce\Bundle\ShippingBundle\Calculator\ShippingSubjectInterface
Résultat Doctrine\Common\Collections\Collection
 /**
  * {@inheritdoc}
  */
 public function getProductDefaultTemplateData(ProductInterface $product) : array
 {
     $shippingMethodCosts = $this->shippingMethodProvider->getCosts(new ProductContext($product));
     $variants = $this->variantHelper->getVariants($product);
     $attributes = $this->variantHelper->getAttributes($product);
     return ['product' => $product, 'shippingCosts' => $shippingMethodCosts, 'variants' => json_encode($variants), 'attributes' => $attributes];
 }
 public function getShippingCostForCurrentOrder()
 {
     if ($this->hasCurrentOrder()) {
         $shippingCosts = $this->shippingMethodProvider->getCosts(new OrderContext($this->getCurrentOrder()));
         if ($shippingCosts->count()) {
             return $shippingCosts->first();
         }
     }
     return null;
 }