src/Entity/Statistics/MiniPanelStatistic.php line 20

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Statistics;
  3. use App\Entity\AbstractBase;
  4. use App\Entity\Garages\Garage;
  5. use App\Entity\Traits\GarageTrait;
  6. use App\Repository\Statistics\MiniPanelStatisticRepository;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Gedmo\Mapping\Annotation as Gedmo;
  9. use Symfony\Component\Security\Core\User\UserInterface;
  10. /**
  11.  * @ORM\Table(name="vulco_mini_panel_statistic")
  12.  *
  13.  * @ORM\Entity(repositoryClass=MiniPanelStatisticRepository::class)
  14.  *
  15.  * @Gedmo\SoftDeleteable(fieldName="removedAt", timeAware=false)
  16.  */
  17. class MiniPanelStatistic extends AbstractBase
  18. {
  19.     use GarageTrait;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity="App\Entity\Garages\Garage")
  22.      */
  23.     private Garage $garage;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity="App\Entity\User")
  26.      */
  27.     private UserInterface $user;
  28.     /**
  29.      * @ORM\Column(type="datetime", nullable=false)
  30.      */
  31.     private \DateTimeInterface $importedOn;
  32.     /**
  33.      * @ORM\Column(type="string", nullable=true)
  34.      */
  35.     private ?string $sapCode null;
  36.     /**
  37.      * @ORM\Column(type="integer", nullable=true, name="vehiculos_turismo")
  38.      */
  39.     private ?int $tourismVehicles null;
  40.     /**
  41.      * @ORM\Column(type="integer", nullable=true, name="vehiculos_camion")
  42.      */
  43.     private ?int $truckVehicles null;
  44.     /**
  45.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true, name="ticket_medio_turismo")
  46.      */
  47.     private ?float $tourismAverageTicket null;
  48.     /**
  49.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true, name="ticket_medio_camion")
  50.      */
  51.     private ?float $truckAverageTicket null;
  52.     /**
  53.      * @ORM\Column(type="integer", nullable=true, name="ventas_neumaticos_turismo")
  54.      */
  55.     private ?int $tourismTireSales null;
  56.     /**
  57.      * @ORM\Column(type="integer", nullable=true, name="ventas_neumaticos_camion")
  58.      */
  59.     private ?int $truckTireSales null;
  60.     /**
  61.      * @ORM\Column(type="integer", nullable=true, name="ventas_neumaticos_moto")
  62.      */
  63.     private ?int $motorcycleTireSales null;
  64.     /**
  65.      * @ORM\Column(type="integer", nullable=true, name="alineaciones")
  66.      */
  67.     private ?int $alignments null;
  68.     /**
  69.      * @ORM\Column(type="integer", nullable=true, name="cambios_aceite")
  70.      */
  71.     private ?int $oilChanges null;
  72.     /**
  73.      * @ORM\Column(type="integer", nullable=true, name="cambios_bateria")
  74.      */
  75.     private ?int $batteryChanges null;
  76.     public function getUser(): UserInterface
  77.     {
  78.         return $this->user;
  79.     }
  80.     public function setUser(UserInterface $user): self
  81.     {
  82.         $this->user $user;
  83.         return $this;
  84.     }
  85.     public function getImportedOn(): \DateTimeInterface
  86.     {
  87.         return $this->importedOn;
  88.     }
  89.     public function setImportedOn(\DateTimeInterface $importedOn): self
  90.     {
  91.         $this->importedOn $importedOn;
  92.         return $this;
  93.     }
  94.     public function getSapCode(): ?string
  95.     {
  96.         return $this->sapCode;
  97.     }
  98.     public function setSapCode(?string $sapCode): self
  99.     {
  100.         $this->sapCode $sapCode;
  101.         return $this;
  102.     }
  103.     public function getTourismVehicles(): ?int
  104.     {
  105.         return $this->tourismVehicles;
  106.     }
  107.     public function setTourismVehicles(?int $tourismVehicles): self
  108.     {
  109.         $this->tourismVehicles $tourismVehicles;
  110.         return $this;
  111.     }
  112.     public function getTruckVehicles(): ?int
  113.     {
  114.         return $this->truckVehicles;
  115.     }
  116.     public function setTruckVehicles(?int $truckVehicles): self
  117.     {
  118.         $this->truckVehicles $truckVehicles;
  119.         return $this;
  120.     }
  121.     public function getTourismAverageTicket(): ?float
  122.     {
  123.         return $this->tourismAverageTicket;
  124.     }
  125.     public function setTourismAverageTicket(?float $tourismAverageTicket): self
  126.     {
  127.         $this->tourismAverageTicket $tourismAverageTicket;
  128.         return $this;
  129.     }
  130.     public function getTruckAverageTicket(): ?float
  131.     {
  132.         return $this->truckAverageTicket;
  133.     }
  134.     public function setTruckAverageTicket(?float $truckAverageTicket): self
  135.     {
  136.         $this->truckAverageTicket $truckAverageTicket;
  137.         return $this;
  138.     }
  139.     public function getTourismTireSales(): ?int
  140.     {
  141.         return $this->tourismTireSales;
  142.     }
  143.     public function setTourismTireSales(?int $tourismTireSales): self
  144.     {
  145.         $this->tourismTireSales $tourismTireSales;
  146.         return $this;
  147.     }
  148.     public function getTruckTireSales(): ?int
  149.     {
  150.         return $this->truckTireSales;
  151.     }
  152.     public function setTruckTireSales(?int $truckTireSales): self
  153.     {
  154.         $this->truckTireSales $truckTireSales;
  155.         return $this;
  156.     }
  157.     public function getMotorcycleTireSales(): ?int
  158.     {
  159.         return $this->motorcycleTireSales;
  160.     }
  161.     public function setMotorcycleTireSales(?int $motorcycleTireSales): self
  162.     {
  163.         $this->motorcycleTireSales $motorcycleTireSales;
  164.         return $this;
  165.     }
  166.     public function getAlignments(): ?int
  167.     {
  168.         return $this->alignments;
  169.     }
  170.     public function setAlignments(?int $alignments): self
  171.     {
  172.         $this->alignments $alignments;
  173.         return $this;
  174.     }
  175.     public function getOilChanges(): ?int
  176.     {
  177.         return $this->oilChanges;
  178.     }
  179.     public function setOilChanges(?int $oilChanges): self
  180.     {
  181.         $this->oilChanges $oilChanges;
  182.         return $this;
  183.     }
  184.     public function getBatteryChanges(): ?int
  185.     {
  186.         return $this->batteryChanges;
  187.     }
  188.     public function setBatteryChanges(?int $batteryChanges): self
  189.     {
  190.         $this->batteryChanges $batteryChanges;
  191.         return $this;
  192.     }
  193. }