feat : mise à jour du bon de réception WIP
This commit is contained in:
71
src/Entity/BovinShipment.php
Normal file
71
src/Entity/BovinShipment.php
Normal file
@@ -0,0 +1,71 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
#[ORM\Entity]
|
||||
#[ORM\Table(name: 'bovin_shipment')]
|
||||
class BovinShipment
|
||||
{
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue]
|
||||
#[ORM\Column]
|
||||
#[Groups(['shipment:read', 'bovine-shipment:read'])]
|
||||
private ?int $id = null;
|
||||
|
||||
#[ORM\ManyToOne(inversedBy: 'shipment')]
|
||||
#[Groups(['shipment:read', 'shipment:write', 'bovine-shipment:read', 'bovine-shipment:write'])]
|
||||
private ?Shipment $Shipment = null;
|
||||
|
||||
#[ORM\ManyToOne(inversedBy: 'bovinShipments')]
|
||||
#[Groups(['shipment:read', 'shipment:write', 'bovine-shipment:read', 'bovine-shipment:write'])]
|
||||
private ?BovineTypeShipment $BovineType = null;
|
||||
|
||||
#[ORM\Column]
|
||||
#[Groups(['shipment:read', 'shipment:write', 'bovine-shipment:read', 'bovine-shipment:write'])]
|
||||
private ?int $nbBovinSend = null;
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function getIdShipment(): ?Shipment
|
||||
{
|
||||
return $this->Shipment;
|
||||
}
|
||||
|
||||
public function setIdShipment(?Shipment $Shipment): static
|
||||
{
|
||||
$this->Shipment = $Shipment;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getIdType(): ?BovineTypeShipment
|
||||
{
|
||||
return $this->BovineType;
|
||||
}
|
||||
|
||||
public function setIdType(?BovineTypeShipment $BovineType): static
|
||||
{
|
||||
$this->BovineType = $BovineType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getNbBovinSend(): ?int
|
||||
{
|
||||
return $this->nbBovinSend;
|
||||
}
|
||||
|
||||
public function setNbBovinSend(int $nbBovinSend): static
|
||||
{
|
||||
$this->nbBovinSend = $nbBovinSend;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user