<?phpdeclare(strict_types=1);namespace Croisiland\CommonBundle\Entity\Price;use Crea\ToolsBundle\Entity\LifecycleUserIdentifierTrait;use Croisiland\CommonBundle\Entity\Traits\CurrencyTrait;use Croisiland\CommonBundle\Repository\Price\PriceCostRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=PriceCostRepository::class) */class PriceCost{ use LifecycleUserIdentifierTrait; use CurrencyTrait; /** * @ORM\Id * * @ORM\GeneratedValue * * @ORM\Column(type="integer") */ private ?int $id = null; /** * @ORM\ManyToOne(targetEntity=PriceCostType::class) * * @ORM\JoinColumn(nullable=true) */ private ?PriceCostType $type = null; /** * @ORM\Column(type="float") */ private ?float $value = null; /** * @ORM\ManyToOne(targetEntity=Price::class, inversedBy="priceCosts") * * @ORM\JoinColumn(nullable=false) */ private ?Price $price = null; /** * @ORM\Column(type="integer") */ private int $position = 0; public function getId(): ?int { return $this->id; } public function getType(): ?PriceCostType { return $this->type; } public function setType(PriceCostType $type): self { $this->type = $type; return $this; } public function getValue(): ?float { return $this->value; } public function setValue(float $value): self { $this->value = $value; return $this; } public function getPrice(): ?Price { return $this->price; } public function setPrice(?Price $price): self { $this->price = $price; return $this; } public function getPosition(): int { return $this->position; } public function setPosition(int $position): self { $this->position = $position; return $this; } public function __clone() { $this->id = null; }}