src/Entity/TcUserType.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * TcUserType
  7.  *
  8.  * @ORM\Table(name="tc_user_type", indexes={@ORM\Index(name="company_id", columns={"company_id"})})
  9.  * @ORM\Entity(repositoryClass="App\Repository\TcUserTypeRepository")
  10.  */
  11. class TcUserType
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer", nullable=false)
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="IDENTITY")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var string
  23.      *
  24.      * @ORM\Column(name="type_title", type="string", length=255, nullable=false)
  25.      */
  26.     private $typeTitle;
  27.     /**
  28.      * @var string|null
  29.      *
  30.      * @ORM\Column(name="roles", type="text", length=16777215, nullable=true)
  31.      */
  32.     private $roles;
  33.     /**
  34.      * @var int
  35.      *
  36.      * @ORM\Column(name="is_active", type="integer", nullable=false, options={"default"="1"})
  37.      */
  38.     private $isActive 1;
  39.     /**
  40.      * @var bool
  41.      *
  42.      * @ORM\Column(name="is_default", type="boolean", nullable=false)
  43.      */
  44.     private $isDefault '0';
  45.     /**
  46.      * @var int
  47.      *
  48.      * @ORM\Column(name="is_deleted", type="integer", nullable=false)
  49.      */
  50.     private $isDeleted '0';
  51.     /**
  52.      * @var \DateTime|null
  53.      *
  54.      * @ORM\Column(name="created_at", type="datetime", nullable=true)
  55.      */
  56.     private $createdAt;
  57.     /**
  58.      * @var \Company
  59.      *
  60.      * @ORM\ManyToOne(targetEntity="Company")
  61.      * @ORM\JoinColumns({
  62.      *   @ORM\JoinColumn(name="company_id", referencedColumnName="id")
  63.      * })
  64.      */
  65.     private $company;
  66.     public function getId(): ?int
  67.     {
  68.         return $this->id;
  69.     }
  70.     public function getTypeTitle(): ?string
  71.     {
  72.         return $this->typeTitle;
  73.     }
  74.     public function setTypeTitle(string $typeTitle): self
  75.     {
  76.         $this->typeTitle $typeTitle;
  77.         return $this;
  78.     }
  79.     public function getRoles(): ?string
  80.     {
  81.         return $this->roles;
  82.     }
  83.     public function setRoles(?string $roles): self
  84.     {
  85.         $this->roles $roles;
  86.         return $this;
  87.     }
  88.     public function getIsActive(): ?int
  89.     {
  90.         return $this->isActive;
  91.     }
  92.     public function setIsActive(int $isActive): self
  93.     {
  94.         $this->isActive $isActive;
  95.         return $this;
  96.     }
  97.     public function isIsDefault(): ?bool
  98.     {
  99.         return $this->isDefault;
  100.     }
  101.     public function setIsDefault(bool $isDefault): self
  102.     {
  103.         $this->isDefault $isDefault;
  104.         return $this;
  105.     }
  106.     public function getIsDeleted(): ?int
  107.     {
  108.         return $this->isDeleted;
  109.     }
  110.     public function setIsDeleted(int $isDeleted): self
  111.     {
  112.         $this->isDeleted $isDeleted;
  113.         return $this;
  114.     }
  115.     public function getCreatedAt(): ?\DateTimeInterface
  116.     {
  117.         return $this->createdAt;
  118.     }
  119.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  120.     {
  121.         $this->createdAt $createdAt;
  122.         return $this;
  123.     }
  124.     public function getCompany(): ?Company
  125.     {
  126.         return $this->company;
  127.     }
  128.     public function setCompany(?Company $company): self
  129.     {
  130.         $this->company $company;
  131.         return $this;
  132.     }
  133. }