src/Flexy/ShopBundle/Entity/Shipping/ShippingCalculationMethod.php line 11
<?phpnamespace App\Flexy\ShopBundle\Entity\Shipping;use ApiPlatform\Metadata\ApiResource;use App\Repository\Flexy\ShopBundle\Entity\Shipping\ShippingCalculationMethodRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ShippingCalculationMethodRepository::class)]#[ApiResource]class ShippingCalculationMethod{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $type = null;#[ORM\Column]private ?float $price = null;#[ORM\ManyToOne(inversedBy: 'calculationMethods')]private ?ShippingMethod $shippingMethod = null;public function __toString(){return "Type : ".ucfirst((string)$this->type);}public function getId(): ?int{return $this->id;}public function getType(): ?string{return $this->type;}public function setType(string $type): self{$this->type = $type;return $this;}public function getPrice(): ?float{return $this->price;}public function setPrice(float $price): self{$this->price = $price;return $this;}public function getShippingMethod(): ?ShippingMethod{return $this->shippingMethod;}public function setShippingMethod(?ShippingMethod $shippingMethod): self{$this->shippingMethod = $shippingMethod;return $this;}}