<?php
namespace App\Entity\Statistics;
use App\Entity\AbstractBase;
use App\Entity\Interfaces\SiteInterface;
use App\Entity\Traits\SiteTrait;
use App\Repository\Statistics\ConfigStatisticRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Table(name="vulco_config_statistic", indexes={@ORM\Index(name="config_statistic_site_idx", columns={"site"})})
*
* @ORM\Entity(repositoryClass=ConfigStatisticRepository::class)
*
* @Gedmo\SoftDeleteable(fieldName="removedAt", timeAware=false)
*/
class ConfigStatistic extends AbstractBase implements SiteInterface
{
use SiteTrait;
/**
* @Assert\GreaterThanOrEqual(value="0")
*
* @Assert\LessThanOrEqual(value="31")
*
* @ORM\Column(name="stock_sales_last_day", type="integer")
*/
private int $stockSalesLastDay;
/**
* @Assert\GreaterThanOrEqual(value="0")
*
* @Assert\LessThanOrEqual(value="31")
*
* @ORM\Column(name="mini_panel_last_day", type="integer")
*/
private int $miniPanelLastDay;
public function getStockSalesLastDay(): int
{
return $this->stockSalesLastDay;
}
public function setStockSalesLastDay(int $day): self
{
$this->stockSalesLastDay = $day;
return $this;
}
public function getMiniPanelLastDay(): int
{
return $this->miniPanelLastDay;
}
public function setMiniPanelLastDay(int $day): self
{
$this->miniPanelLastDay = $day;
return $this;
}
}