src/Entity/Delete/Invoiceable.php line 14

  1. <?php
  2. namespace App\Entity\Delete;
  3. use App\Entity\Common as Common;
  4. use App\Entity\Identity\User;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Doctrine\ORM\Mapping\MappedSuperclass;
  8. use Gedmo\Mapping\Annotation as Gedmo;
  9. use Symfony\Component\Validator\Constraints as Assert;
  10. #[MappedSuperclass]
  11. class Invoiceable
  12. {
  13.     use Common\Blameable;
  14.     use Common\Trackable;
  15.     #[ORM\Column(typeTypes::INTEGERnullabletrue)]
  16.     protected ?int $version null;
  17.     #[Assert\NotBlank]
  18.     #[Assert\Type(typeTypes::STRING)]
  19.     #[ORM\Column(typeTypes::STRING)]
  20.     protected ?string $reference null;
  21.     #[Assert\NotBlank]
  22.     #[Assert\Type(typeTypes::STRING)]
  23.     #[ORM\Column(typeTypes::STRING)]
  24.     protected ?string $orderNumber null;
  25.     #[Assert\NotBlank]
  26.     #[Assert\Type(typeTypes::STRING)]
  27.     #[ORM\Column(typeTypes::STRING)]
  28.     protected ?string $origin null;
  29.     #[Assert\NotBlank]
  30.     #[Assert\Type(typeTypes::STRING)]
  31.     #[ORM\Column(typeTypes::STRING)]
  32.     protected ?string $pickupPlace null;
  33.     #[Assert\NotBlank]
  34.     #[Assert\Type(typeTypes::STRING)]
  35.     #[ORM\Column(typeTypes::STRING)]
  36.     protected ?string $pickupCountryCode null;
  37.     #[Assert\NotBlank]
  38.     #[Assert\Type(typeTypes::STRING)]
  39.     #[ORM\Column(typeTypes::STRING)]
  40.     protected ?string $tariffZone null;
  41.     #[Assert\NotNull]
  42.     #[ORM\Column(typeTypes::INTEGER)]
  43.     protected ?int $boxesCount null;
  44.     #[Assert\Type(typeTypes::FLOAT)]
  45.     #[ORM\Column(typeTypes::DECIMALprecision18scale5nullabletrue)]
  46.     protected ?float $value null;
  47.     #[Assert\NotNull]
  48.     #[Assert\Type(typeTypes::FLOAT)]
  49.     #[ORM\Column(typeTypes::DECIMALprecision18scale5)]
  50.     protected ?float $weight null;
  51.     #[Assert\NotNull]
  52.     #[Assert\Type(typeTypes::FLOAT)]
  53.     #[ORM\Column(typeTypes::DECIMALprecision18scale5)]
  54.     protected ?float $volume null;
  55.     #[ORM\Column(typeTypes::DECIMALprecision18scale5)]
  56.     protected ?float $chargeableWeight null;
  57.     #[Assert\NotNull]
  58.     #[Assert\Type(typeTypes::BOOLEAN)]
  59.     #[ORM\Column(typeTypes::BOOLEAN)]
  60.     protected ?bool $europe null;
  61.     #[Gedmo\Blameable(on'create')]
  62.     #[ORM\ManyToOne(targetEntityUser::class)]
  63.     #[ORM\JoinColumn(name'created_by'nullabletrue)]
  64.     protected ?User $createdBy null;
  65.     public function getReference(): ?string
  66.     {
  67.         return $this->reference;
  68.     }
  69.     public function setReference(string $reference): self
  70.     {
  71.         $this->reference $reference;
  72.         return $this;
  73.     }
  74.     public function getVersion(): ?int
  75.     {
  76.         return $this->version;
  77.     }
  78.     public function setVersion(int $version): self
  79.     {
  80.         $this->version $version;
  81.         return $this;
  82.     }
  83.     public function getOrderNumber(): ?string
  84.     {
  85.         return $this->orderNumber;
  86.     }
  87.     public function setOrderNumber(string $orderNumber): self
  88.     {
  89.         $this->orderNumber $orderNumber;
  90.         return $this;
  91.     }
  92.     public function getOrigin(): ?string
  93.     {
  94.         return $this->origin;
  95.     }
  96.     public function setOrigin(string $origin): self
  97.     {
  98.         $this->origin $origin;
  99.         return $this;
  100.     }
  101.     public function getPickupPlace(): ?string
  102.     {
  103.         return $this->pickupPlace;
  104.     }
  105.     public function setPickupPlace(string $pickupPlace): self
  106.     {
  107.         $this->pickupPlace $pickupPlace;
  108.         return $this;
  109.     }
  110.     public function getPickupCountryCode(): ?string
  111.     {
  112.         return $this->pickupCountryCode;
  113.     }
  114.     public function setPickupCountryCode(string $pickupCountryCode): self
  115.     {
  116.         $this->pickupCountryCode $pickupCountryCode;
  117.         return $this;
  118.     }
  119.     public function getTariffZone(): ?string
  120.     {
  121.         return $this->tariffZone;
  122.     }
  123.     public function setTariffZone(string $tariffZone): self
  124.     {
  125.         $this->tariffZone $tariffZone;
  126.         return $this;
  127.     }
  128.     public function getBoxesCount(): ?int
  129.     {
  130.         return $this->boxesCount;
  131.     }
  132.     public function setBoxesCount(int $boxesCount): self
  133.     {
  134.         $this->boxesCount $boxesCount;
  135.         return $this;
  136.     }
  137.     public function getValue(): ?float
  138.     {
  139.         return $this->value;
  140.     }
  141.     public function setValue(?float $value): self
  142.     {
  143.         $this->value $value;
  144.         return $this;
  145.     }
  146.     public function getWeight(): ?float
  147.     {
  148.         return $this->weight;
  149.     }
  150.     public function setWeight(?float $weight): self
  151.     {
  152.         $this->weight $weight;
  153.         return $this;
  154.     }
  155.     public function getVolume(): ?float
  156.     {
  157.         return $this->volume;
  158.     }
  159.     public function setVolume(?float $volume): self
  160.     {
  161.         $this->volume $volume;
  162.         return $this;
  163.     }
  164.     public function getChargeableWeight(): ?float
  165.     {
  166.         return $this->chargeableWeight;
  167.     }
  168.     public function setChargeableWeight(?float $chargeableWeight): self
  169.     {
  170.         $this->chargeableWeight $chargeableWeight;
  171.         return $this;
  172.     }
  173.     public function isEurope(): ?bool
  174.     {
  175.         return $this->europe;
  176.     }
  177.     public function setEurope(bool $europe): self
  178.     {
  179.         $this->europe $europe;
  180.         return $this;
  181.     }
  182. }