Author: Adam Piotrowski (adam@wellcommerce.org)
Inheritance: extends WellCommerce\Bundle\DoctrineBundle\Entity\AbstractEntity, implements WellCommerce\Bundle\ShippingBundle\Entity\ShippingMethodInterface, use trait Knp\DoctrineBehaviors\Model\Translatable\Translatable, use trait Knp\DoctrineBehaviors\Model\Timestampable\Timestampable, use trait Knp\DoctrineBehaviors\Model\Blameable\Blameable, use trait WellCommerce\Bundle\DoctrineBundle\Behaviours\Enableable\EnableableTrait, use trait WellCommerce\Bundle\AppBundle\Entity\HierarchyAwareTrait, use trait WellCommerce\Bundle\TaxBundle\Entity\TaxAwareTrait
 /**
  * @return \WellCommerce\Bundle\ShippingBundle\Entity\ShippingMethodInterface
  */
 public function create()
 {
     $shippingMethod = new ShippingMethod();
     $shippingMethod->setCosts(new ArrayCollection());
     $shippingMethod->setEnabled(true);
     $shippingMethod->setHierarchy(0);
     return $shippingMethod;
 }
 public function create() : ShippingMethodInterface
 {
     $shippingMethod = new ShippingMethod();
     $shippingMethod->setCosts($this->createEmptyCollection());
     $shippingMethod->setEnabled(true);
     $shippingMethod->setHierarchy(0);
     $shippingMethod->setCurrency(null);
     $shippingMethod->setTax(null);
     $shippingMethod->setCalculator('');
     $shippingMethod->setCountries([]);
     $shippingMethod->setOptionsProvider('');
     return $shippingMethod;
 }