src/Entity/Accounts/UserServices.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Accounts;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * Userservices
  7.  *
  8.  * @ORM\Table(name="otp_accounts.userServices", uniqueConstraints={@ORM\UniqueConstraint(name="unique", columns={"serviceType", "service_id", "user_id"})}, indexes={@ORM\Index(name="user_id", columns={"user_id"}), @ORM\Index(name="state", columns={"state"})})
  9.  * @ORM\Entity
  10.  */
  11. class UserServices
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true})
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="IDENTITY")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var int
  23.      *
  24.      * @ORM\Column(name="user_id", type="integer", nullable=false, options={"unsigned"=true})
  25.      */
  26.     private $userId;
  27.     /**
  28.      * @var string
  29.      *
  30.      * @ORM\Column(name="serviceType", type="string", length=0, nullable=false, options={"comment"="тип сервиса"})
  31.      */
  32.     private $servicetype;
  33.     /**
  34.      * @var int
  35.      *
  36.      * @ORM\Column(name="service_id", type="integer", nullable=false, options={"unsigned"=true})
  37.      */
  38.     private $serviceId;
  39.     /**
  40.      * @var int
  41.      *
  42.      * @ORM\Column(name="privileges", type="integer", nullable=false)
  43.      */
  44.     private $privileges;
  45.     /**
  46.      * @var string
  47.      *
  48.      * @ORM\Column(name="state", type="string", length=0, nullable=false)
  49.      */
  50.     private $state;
  51.     /**
  52.      * @var \DateTime
  53.      *
  54.      * @ORM\Column(name="created", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
  55.      */
  56.     private $created 'CURRENT_TIMESTAMP';
  57.     /**
  58.      * @var \DateTime
  59.      *
  60.      * @ORM\Column(name="lastlog", type="datetime", nullable=false, options={"comment"="Дата последнего события отельера"})
  61.      */
  62.     private $lastlog;
  63.     public function getId(): ?int
  64.     {
  65.         return $this->id;
  66.     }
  67.     public function getUserId(): ?int
  68.     {
  69.         return $this->userId;
  70.     }
  71.     public function setUserId(int $userId): static
  72.     {
  73.         $this->userId $userId;
  74.         return $this;
  75.     }
  76.     public function getServicetype(): ?string
  77.     {
  78.         return $this->servicetype;
  79.     }
  80.     public function setServicetype(string $servicetype): static
  81.     {
  82.         $this->servicetype $servicetype;
  83.         return $this;
  84.     }
  85.     public function getServiceId(): ?int
  86.     {
  87.         return $this->serviceId;
  88.     }
  89.     public function setServiceId(int $serviceId): static
  90.     {
  91.         $this->serviceId $serviceId;
  92.         return $this;
  93.     }
  94.     public function getPrivileges(): ?int
  95.     {
  96.         return $this->privileges;
  97.     }
  98.     public function setPrivileges(int $privileges): static
  99.     {
  100.         $this->privileges $privileges;
  101.         return $this;
  102.     }
  103.     public function getState(): ?string
  104.     {
  105.         return $this->state;
  106.     }
  107.     public function setState(string $state): static
  108.     {
  109.         $this->state $state;
  110.         return $this;
  111.     }
  112.     public function getCreated(): ?\DateTimeInterface
  113.     {
  114.         return $this->created;
  115.     }
  116.     public function setCreated(\DateTimeInterface $created): static
  117.     {
  118.         $this->created $created;
  119.         return $this;
  120.     }
  121.     public function getLastlog(): ?\DateTimeInterface
  122.     {
  123.         return $this->lastlog;
  124.     }
  125.     public function setLastlog(\DateTimeInterface $lastlog): static
  126.     {
  127.         $this->lastlog $lastlog;
  128.         return $this;
  129.     }
  130. }