<?phpnamespace App\Entity;use App\Repository\DocumentTypeRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=DocumentTypeRepository::class) */class DocumentType{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $name; /** * @ORM\Column(type="text") */ private $description; /** * @var boolean * * @ORM\Column( type="boolean") */ private $requiredInd; /** * @var boolean * * @ORM\Column( type="boolean" , options={"default":"1"}) */ private $active = 1; /** * @ORM\Column(type="integer") */ private $entityUser; /** * @var \DateTime $createdAt * * * @ORM\Column(type="datetime", nullable=true ) */ protected $createdAt; /** * @var \DateTime $updatedAt * * * @ORM\Column(type="datetime", nullable=true ) */ protected $updatedAt; /** * @ORM\OneToMany(targetEntity="Documentation", mappedBy="documentType") */ protected $documentation; /** * @ORM\OneToMany(targetEntity="ClassDocumentType", mappedBy="documentType") */ protected $classDocumentType; /** * @ORM\ManyToOne(targetEntity="User", inversedBy="documentType") * @ORM\JoinColumn(name="quality_user_id", referencedColumnName="id", nullable=true) */ protected $qualityUser; public function __construct() { $this->documentation = new ArrayCollection(); $this->classDocumentType = new ArrayCollection(); $this->formType = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getEntityUser(): ?int { return $this->entityUser; } public function setEntityUser(int $entityUser): self { $this->entityUser = $entityUser; return $this; } /** * @param \DateTime $createdAt * * @ORM\PrePersist */ public function setCreatedAt() { $this->createdAt = new \DateTime(date('Y-m-d H:i:s')); } /** * @return \DateTime */ public function getCreatedAt() { return $this->createdAt; } /** * @param \DateTime $updatedAt * */ public function setUpdatedAt() { $this->updatedAt = new \DateTime(date('Y-m-d H:i:s')); } /** * @return \DateTime */ public function getUpdatedAt() { return $this->updatedAt; } /** * @return mixed */ public function getDocumentation() { return $this->documentation; } /** * @param mixed $documentation */ public function setDocumentation($documentation): void { $this->documentation = $documentation; } /** * @return mixed */ public function getDescription() { return $this->description; } /** * @param mixed $description */ public function setDescription($description): void { $this->description = $description; } /** * @return bool */ public function isRequiredInd(): bool { return $this->requiredInd; } /** * @param bool $requiredInd */ public function setRequiredInd(bool $requiredInd): void { $this->requiredInd = $requiredInd; } /** * @return bool */ public function isActive() { return $this->active; } /** * @param bool $active */ public function setActive($active): void { $this->active = $active; } /** * @return ArrayCollection */ public function getClassDocumentType(): ArrayCollection { return $this->classDocumentType; } /** * @param ArrayCollection $classDocumentType */ public function setClassDocumentType(ArrayCollection $classDocumentType): void { $this->classDocumentType = $classDocumentType; } /** * @return ArrayCollection */ public function getFormType(): ArrayCollection { return $this->formType; } /** * @param ArrayCollection $formType */ public function setFormType(ArrayCollection $formType): void { $this->formType = $formType; } /** * @return mixed */ public function getTenderBasis() { return $this->tenderBasis; } /** * @param mixed $tenderBasis */ public function setTenderBasis($tenderBasis): void { $this->tenderBasis = $tenderBasis; } /** * @return mixed */ public function getProposalDocument() { return $this->proposalDocument; } /** * @param mixed $proposalDocument */ public function setProposalDocument($proposalDocument): void { $this->proposalDocument = $proposalDocument; } public function getQualityUser(): ?User { return $this->qualityUser; } public function setQualityUser(?User $qualityUser): void { $this->qualityUser = $qualityUser; }}