src/Flexy/ShopBundle/Entity/Shipping/ShipmentPaper.php line 12
<?phpnamespace App\Flexy\ShopBundle\Entity\Shipping;use ApiPlatform\Metadata\ApiResource;use App\Repository\Flexy\ShopBundle\Entity\Shipping\ShipmentPaperRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ShipmentPaperRepository::class)]#[ApiResource]class ShipmentPaper{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $reference = null;#[ORM\Column]private ?int $nbrSended = null;#[ORM\Column]private ?int $nbrReturned = null;#[ORM\Column(length: 255, nullable: true)]private ?string $image = null;#[ORM\Column(length: 255)]private ?string $type = null;#[ORM\ManyToOne(inversedBy: 'shipmentPapers')]private ?Shipment $shipment = null;#[ORM\ManyToOne(inversedBy: 'shipmentPapers')]private ?CashBox $cashBox = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $collectedAt = null;public function __toString(){return $this->reference;}public function getId(): ?int{return $this->id;}public function getReference(): ?string{return $this->reference;}public function setReference(string $reference): self{$this->reference = $reference;return $this;}public function getNbrSended(): ?int{return $this->nbrSended;}public function setNbrSended(int $nbrSended): self{$this->nbrSended = $nbrSended;return $this;}public function getNbrReturned(): ?int{return $this->nbrReturned;}public function setNbrReturned(int $nbrReturned): self{$this->nbrReturned = $nbrReturned;return $this;}public function getImage(): ?string{return $this->image;}public function setImage(?string $image): self{$this->image = $image;return $this;}public function getType(): ?string{return $this->type;}public function setType(string $type): self{$this->type = $type;return $this;}public function getShipment(): ?Shipment{return $this->shipment;}public function setShipment(?Shipment $shipment): self{$this->shipment = $shipment;return $this;}public function getCashBox(): ?CashBox{return $this->cashBox;}public function setCashBox(?CashBox $cashBox): self{$this->cashBox = $cashBox;return $this;}public function getCollectedAt(): ?\DateTimeInterface{return $this->collectedAt;}public function setCollectedAt(?\DateTimeInterface $collectedAt): self{$this->collectedAt = $collectedAt;return $this;}}