<?php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* TcUserType
*
* @ORM\Table(name="tc_user_type", indexes={@ORM\Index(name="company_id", columns={"company_id"})})
* @ORM\Entity(repositoryClass="App\Repository\TcUserTypeRepository")
*/
class TcUserType
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="type_title", type="string", length=255, nullable=false)
*/
private $typeTitle;
/**
* @var string|null
*
* @ORM\Column(name="roles", type="text", length=16777215, nullable=true)
*/
private $roles;
/**
* @var int
*
* @ORM\Column(name="is_active", type="integer", nullable=false, options={"default"="1"})
*/
private $isActive = 1;
/**
* @var bool
*
* @ORM\Column(name="is_default", type="boolean", nullable=false)
*/
private $isDefault = '0';
/**
* @var int
*
* @ORM\Column(name="is_deleted", type="integer", nullable=false)
*/
private $isDeleted = '0';
/**
* @var \DateTime|null
*
* @ORM\Column(name="created_at", type="datetime", nullable=true)
*/
private $createdAt;
/**
* @var \Company
*
* @ORM\ManyToOne(targetEntity="Company")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="company_id", referencedColumnName="id")
* })
*/
private $company;
public function getId(): ?int
{
return $this->id;
}
public function getTypeTitle(): ?string
{
return $this->typeTitle;
}
public function setTypeTitle(string $typeTitle): self
{
$this->typeTitle = $typeTitle;
return $this;
}
public function getRoles(): ?string
{
return $this->roles;
}
public function setRoles(?string $roles): self
{
$this->roles = $roles;
return $this;
}
public function getIsActive(): ?int
{
return $this->isActive;
}
public function setIsActive(int $isActive): self
{
$this->isActive = $isActive;
return $this;
}
public function isIsDefault(): ?bool
{
return $this->isDefault;
}
public function setIsDefault(bool $isDefault): self
{
$this->isDefault = $isDefault;
return $this;
}
public function getIsDeleted(): ?int
{
return $this->isDeleted;
}
public function setIsDeleted(int $isDeleted): self
{
$this->isDeleted = $isDeleted;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getCompany(): ?Company
{
return $this->company;
}
public function setCompany(?Company $company): self
{
$this->company = $company;
return $this;
}
}