<?phpnamespace App\Entity\Statistics;use App\Entity\AbstractBase;use App\Entity\Garages\Garage;use App\Entity\Traits\GarageTrait;use App\Entity\User;use App\Repository\Statistics\SaleStatisticRepository;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;use Symfony\Component\Validator\Constraints as Assert;/** * @ORM\Table(name="vulco_sale_statistic") * * @ORM\Entity(repositoryClass=SaleStatisticRepository::class) * * @Gedmo\SoftDeleteable(fieldName="removedAt", timeAware=false) */class SaleStatistic extends AbstractBase{ use GarageTrait; /** * @ORM\ManyToOne(targetEntity="App\Entity\Garages\Garage") */ private Garage $garage; /** * @ORM\ManyToOne(targetEntity="App\Entity\User") */ private User $user; /** * @ORM\Column(type="datetime", nullable=false) */ private \DateTimeInterface $importedOn; /** * @ORM\Column(type="string", nullable=true) */ private ?string $sapCode; /** * @Assert\NotBlank() * * @ORM\Column(type="string") */ private string $code; /** * @Assert\NotBlank() * * @ORM\Column(type="integer") */ private int $quantity; /** * @Assert\NotBlank() * * @ORM\Column(type="float", precision=10, scale=2) */ private float $price; /** * @Assert\NotBlank() * * @ORM\Column(type="string") */ private string $zipCode; /** * @Assert\NotBlank() * * @ORM\Column(type="string") */ private string $brand; public function getUser(): User { return $this->user; } public function setUser(User $user): self { $this->user = $user; return $this; } public function getImportedOn(): \DateTimeInterface { return $this->importedOn; } public function setImportedOn(\DateTimeInterface $importedOn): self { $this->importedOn = $importedOn; return $this; } public function getSapCode(): ?string { return $this->sapCode; } public function setSapCode(?string $sapCode): self { $this->sapCode = $sapCode; return $this; } public function getCode(): string { return $this->code; } public function setCode(string $code): self { $this->code = $code; return $this; } public function getQuantity(): int { return $this->quantity; } public function setQuantity(int $quantity): self { $this->quantity = $quantity; return $this; } public function getPrice(): float { return $this->price; } public function setPrice(float $price): self { $this->price = $price; return $this; } public function getZipCode(): string { return $this->zipCode; } public function setZipCode(string $zipCode): self { $this->zipCode = $zipCode; return $this; } public function getBrand(): string { return $this->brand; } public function setBrand(string $brand): self { $this->brand = $brand; return $this; }}