src/Entity/Statistics/ConfigStatistic.php line 20

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Statistics;
  3. use App\Entity\AbstractBase;
  4. use App\Entity\Interfaces\SiteInterface;
  5. use App\Entity\Traits\SiteTrait;
  6. use App\Repository\Statistics\ConfigStatisticRepository;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Gedmo\Mapping\Annotation as Gedmo;
  9. use Symfony\Component\Validator\Constraints as Assert;
  10. /**
  11.  * @ORM\Table(name="vulco_config_statistic", indexes={@ORM\Index(name="config_statistic_site_idx", columns={"site"})})
  12.  *
  13.  * @ORM\Entity(repositoryClass=ConfigStatisticRepository::class)
  14.  *
  15.  * @Gedmo\SoftDeleteable(fieldName="removedAt", timeAware=false)
  16.  */
  17. class ConfigStatistic extends AbstractBase implements SiteInterface
  18. {
  19.     use SiteTrait;
  20.     /**
  21.      * @Assert\GreaterThanOrEqual(value="0")
  22.      *
  23.      * @Assert\LessThanOrEqual(value="31")
  24.      *
  25.      * @ORM\Column(name="stock_sales_last_day", type="integer")
  26.      */
  27.     private int $stockSalesLastDay;
  28.     /**
  29.      * @Assert\GreaterThanOrEqual(value="0")
  30.      *
  31.      * @Assert\LessThanOrEqual(value="31")
  32.      *
  33.      * @ORM\Column(name="mini_panel_last_day", type="integer")
  34.      */
  35.     private int $miniPanelLastDay;
  36.     public function getStockSalesLastDay(): int
  37.     {
  38.         return $this->stockSalesLastDay;
  39.     }
  40.     public function setStockSalesLastDay(int $day): self
  41.     {
  42.         $this->stockSalesLastDay $day;
  43.         return $this;
  44.     }
  45.     public function getMiniPanelLastDay(): int
  46.     {
  47.         return $this->miniPanelLastDay;
  48.     }
  49.     public function setMiniPanelLastDay(int $day): self
  50.     {
  51.         $this->miniPanelLastDay $day;
  52.         return $this;
  53.     }
  54. }