WellCommerce\Bundle\ShippingBundle\Entity\ShippingMethod::setCosts PHP 메소드

setCosts() 공개 메소드

public setCosts ( Doctrine\Common\Collections\Collection $costs )
$costs Doctrine\Common\Collections\Collection
    public function setCosts(Collection $costs)
    {
        $this->costs = $costs;
    }

Usage Example

 /**
  * @return \WellCommerce\Bundle\ShippingBundle\Entity\ShippingMethodInterface
  */
 public function create()
 {
     $shippingMethod = new ShippingMethod();
     $shippingMethod->setCosts(new ArrayCollection());
     $shippingMethod->setEnabled(true);
     $shippingMethod->setHierarchy(0);
     return $shippingMethod;
 }
All Usage Examples Of WellCommerce\Bundle\ShippingBundle\Entity\ShippingMethod::setCosts