src/Entity/Delete/Invoiceable.php line 14
<?php
namespace App\Entity\Delete;
use App\Entity\Common as Common;
use App\Entity\Identity\User;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Mapping\MappedSuperclass;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as Assert;
#[MappedSuperclass]
class Invoiceable
{
use Common\Blameable;
use Common\Trackable;
#[ORM\Column(type: Types::INTEGER, nullable: true)]
protected ?int $version = null;
#[Assert\NotBlank]
#[Assert\Type(type: Types::STRING)]
#[ORM\Column(type: Types::STRING)]
protected ?string $reference = null;
#[Assert\NotBlank]
#[Assert\Type(type: Types::STRING)]
#[ORM\Column(type: Types::STRING)]
protected ?string $orderNumber = null;
#[Assert\NotBlank]
#[Assert\Type(type: Types::STRING)]
#[ORM\Column(type: Types::STRING)]
protected ?string $origin = null;
#[Assert\NotBlank]
#[Assert\Type(type: Types::STRING)]
#[ORM\Column(type: Types::STRING)]
protected ?string $pickupPlace = null;
#[Assert\NotBlank]
#[Assert\Type(type: Types::STRING)]
#[ORM\Column(type: Types::STRING)]
protected ?string $pickupCountryCode = null;
#[Assert\NotBlank]
#[Assert\Type(type: Types::STRING)]
#[ORM\Column(type: Types::STRING)]
protected ?string $tariffZone = null;
#[Assert\NotNull]
#[ORM\Column(type: Types::INTEGER)]
protected ?int $boxesCount = null;
#[Assert\Type(type: Types::FLOAT)]
#[ORM\Column(type: Types::DECIMAL, precision: 18, scale: 5, nullable: true)]
protected ?float $value = null;
#[Assert\NotNull]
#[Assert\Type(type: Types::FLOAT)]
#[ORM\Column(type: Types::DECIMAL, precision: 18, scale: 5)]
protected ?float $weight = null;
#[Assert\NotNull]
#[Assert\Type(type: Types::FLOAT)]
#[ORM\Column(type: Types::DECIMAL, precision: 18, scale: 5)]
protected ?float $volume = null;
#[ORM\Column(type: Types::DECIMAL, precision: 18, scale: 5)]
protected ?float $chargeableWeight = null;
#[Assert\NotNull]
#[Assert\Type(type: Types::BOOLEAN)]
#[ORM\Column(type: Types::BOOLEAN)]
protected ?bool $europe = null;
#[Gedmo\Blameable(on: 'create')]
#[ORM\ManyToOne(targetEntity: User::class)]
#[ORM\JoinColumn(name: 'created_by', nullable: true)]
protected ?User $createdBy = null;
public function getReference(): ?string
{
return $this->reference;
}
public function setReference(string $reference): self
{
$this->reference = $reference;
return $this;
}
public function getVersion(): ?int
{
return $this->version;
}
public function setVersion(int $version): self
{
$this->version = $version;
return $this;
}
public function getOrderNumber(): ?string
{
return $this->orderNumber;
}
public function setOrderNumber(string $orderNumber): self
{
$this->orderNumber = $orderNumber;
return $this;
}
public function getOrigin(): ?string
{
return $this->origin;
}
public function setOrigin(string $origin): self
{
$this->origin = $origin;
return $this;
}
public function getPickupPlace(): ?string
{
return $this->pickupPlace;
}
public function setPickupPlace(string $pickupPlace): self
{
$this->pickupPlace = $pickupPlace;
return $this;
}
public function getPickupCountryCode(): ?string
{
return $this->pickupCountryCode;
}
public function setPickupCountryCode(string $pickupCountryCode): self
{
$this->pickupCountryCode = $pickupCountryCode;
return $this;
}
public function getTariffZone(): ?string
{
return $this->tariffZone;
}
public function setTariffZone(string $tariffZone): self
{
$this->tariffZone = $tariffZone;
return $this;
}
public function getBoxesCount(): ?int
{
return $this->boxesCount;
}
public function setBoxesCount(int $boxesCount): self
{
$this->boxesCount = $boxesCount;
return $this;
}
public function getValue(): ?float
{
return $this->value;
}
public function setValue(?float $value): self
{
$this->value = $value;
return $this;
}
public function getWeight(): ?float
{
return $this->weight;
}
public function setWeight(?float $weight): self
{
$this->weight = $weight;
return $this;
}
public function getVolume(): ?float
{
return $this->volume;
}
public function setVolume(?float $volume): self
{
$this->volume = $volume;
return $this;
}
public function getChargeableWeight(): ?float
{
return $this->chargeableWeight;
}
public function setChargeableWeight(?float $chargeableWeight): self
{
$this->chargeableWeight = $chargeableWeight;
return $this;
}
public function isEurope(): ?bool
{
return $this->europe;
}
public function setEurope(bool $europe): self
{
$this->europe = $europe;
return $this;
}
}