src/Entity/SiteService.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SiteServiceRepository;
  4. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=SiteServiceRepository::class)
  8.  * @Auditable()
  9.  */
  10. class SiteService
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=Sites::class)
  20.      */
  21.     private $site;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity=Services::class)
  24.      * @ORM\JoinColumn(nullable=false)
  25.      */
  26.     private $service;
  27.     /**
  28.      * @ORM\Column(type="boolean", nullable=true)
  29.      */
  30.     private $isDeleted;
  31.     /**
  32.      * @ORM\Column(type="datetime", nullable=true)
  33.      */
  34.     private $dateCreate;
  35.     /**
  36.      * @ORM\Column(type="datetime", nullable=true)
  37.      */
  38.     private $dateUpdate;
  39.     /**
  40.      * @ORM\ManyToOne(targetEntity=Users::class)
  41.      */
  42.     private $userCreate;
  43.     /**
  44.      * @ORM\ManyToOne(targetEntity=Users::class)
  45.      */
  46.     private $userUpdate;
  47.     /**
  48.      *
  49.      */
  50.     public function __construct()
  51.     {
  52.         $this->isDeleted false;
  53.         $this->dateCreate = new \DateTime();
  54.     }
  55.     public function getId(): ?int
  56.     {
  57.         return $this->id;
  58.     }
  59.     /**
  60.      * @return mixed
  61.      */
  62.     public function getSite()
  63.     {
  64.         return $this->site;
  65.     }
  66.     /**
  67.      * @param mixed $site
  68.      */
  69.     public function setSite($site): void
  70.     {
  71.         $this->site $site;
  72.     }
  73.     /**
  74.      * @return mixed
  75.      */
  76.     public function getService()
  77.     {
  78.         return $this->service;
  79.     }
  80.     /**
  81.      * @param mixed $service
  82.      */
  83.     public function setService($service): void
  84.     {
  85.         $this->service $service;
  86.     }
  87.     /**
  88.      * @return mixed
  89.      */
  90.     public function getIsDeleted()
  91.     {
  92.         return $this->isDeleted;
  93.     }
  94.     /**
  95.      * @param mixed $isDeleted
  96.      */
  97.     public function setIsDeleted($isDeleted): void
  98.     {
  99.         $this->isDeleted $isDeleted;
  100.     }
  101.     /**
  102.      * @return mixed
  103.      */
  104.     public function getDateCreate()
  105.     {
  106.         return $this->dateCreate;
  107.     }
  108.     /**
  109.      * @param mixed $dateCreate
  110.      */
  111.     public function setDateCreate($dateCreate): void
  112.     {
  113.         $this->dateCreate $dateCreate;
  114.     }
  115.     /**
  116.      * @return mixed
  117.      */
  118.     public function getDateUpdate()
  119.     {
  120.         return $this->dateUpdate;
  121.     }
  122.     /**
  123.      * @param mixed $dateUpdate
  124.      */
  125.     public function setDateUpdate($dateUpdate): void
  126.     {
  127.         $this->dateUpdate $dateUpdate;
  128.     }
  129.     /**
  130.      * @return mixed
  131.      */
  132.     public function getUserCreate()
  133.     {
  134.         return $this->userCreate;
  135.     }
  136.     /**
  137.      * @param mixed $userCreate
  138.      */
  139.     public function setUserCreate($userCreate): void
  140.     {
  141.         $this->userCreate $userCreate;
  142.     }
  143.     /**
  144.      * @return mixed
  145.      */
  146.     public function getUserUpdate()
  147.     {
  148.         return $this->userUpdate;
  149.     }
  150.     /**
  151.      * @param mixed $userUpdate
  152.      */
  153.     public function setUserUpdate($userUpdate): void
  154.     {
  155.         $this->userUpdate $userUpdate;
  156.     }
  157. }