src/Flexy/ShopBundle/Entity/Shipping/ShipmentItemChild.php line 14
<?phpnamespace App\Flexy\ShopBundle\Entity\Shipping;use ApiPlatform\Metadata\ApiResource;use App\Repository\Flexy\ShopBundle\Entity\Shipping\ShipmentItemChildRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ShipmentItemChildRepository::class)]#[ApiResource]class ShipmentItemChild{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255,unique:true, nullable: true)]private ?string $barcode = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $description = null;#[ORM\ManyToOne(inversedBy: 'shipmentItemChildren')]private ?ShipmentItem $shipmentItem = null;#[ORM\ManyToMany(targetEntity: TrackingStep::class, inversedBy: 'shipmentItemChildren')]private Collection $trackingSteps;public function __construct(){$this->trackingSteps = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getBarcode(): ?string{return $this->barcode;}public function setBarcode(string $barcode): self{$this->barcode = $barcode;return $this;}public function getDescription(): ?string{return $this->description;}public function setDescription(?string $description): self{$this->description = $description;return $this;}public function getShipmentItem(): ?ShipmentItem{return $this->shipmentItem;}public function setShipmentItem(?ShipmentItem $shipmentItem): self{$this->shipmentItem = $shipmentItem;return $this;}/*** @return Collection<int, TrackingStep>*/public function getTrackingSteps(): Collection{return $this->trackingSteps;}public function addTrackingStep(TrackingStep $trackingStep): self{if (!$this->trackingSteps->contains($trackingStep)) {$this->trackingSteps->add($trackingStep);}return $this;}public function removeTrackingStep(TrackingStep $trackingStep): self{$this->trackingSteps->removeElement($trackingStep);return $this;}}