src/Entity/Company.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. * Company
  7. *
  8. * @ORM\Table(name="company")
  9. * @ORM\Entity
  10. */
  11. class Company
  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="company_title", type="string", length=255, nullable=false)
  25. */
  26. private $companyTitle;
  27. /**
  28. * @var bool
  29. *
  30. * @ORM\Column(name="is_active", type="boolean", nullable=false, options={"default"="1"})
  31. */
  32. private $isActive = true;
  33. /**
  34. * @var bool
  35. *
  36. * @ORM\Column(name="is_deleted", type="boolean", nullable=false)
  37. */
  38. private $isDeleted = '0';
  39. /**
  40. * @var \DateTime|null
  41. *
  42. * @ORM\Column(name="created_at", type="datetime", nullable=true)
  43. */
  44. private $createdAt;
  45. public function getId(): ?int
  46. {
  47. return $this->id;
  48. }
  49. public function getCompanyTitle(): ?string
  50. {
  51. return $this->companyTitle;
  52. }
  53. public function setCompanyTitle(string $companyTitle): self
  54. {
  55. $this->companyTitle = $companyTitle;
  56. return $this;
  57. }
  58. public function getIsActive(): ?bool
  59. {
  60. return $this->isActive;
  61. }
  62. public function setIsActive(bool $isActive): self
  63. {
  64. $this->isActive = $isActive;
  65. return $this;
  66. }
  67. public function getIsDeleted(): ?bool
  68. {
  69. return $this->isDeleted;
  70. }
  71. public function setIsDeleted(bool $isDeleted): self
  72. {
  73. $this->isDeleted = $isDeleted;
  74. return $this;
  75. }
  76. public function getCreatedAt(): ?\DateTimeInterface
  77. {
  78. return $this->createdAt;
  79. }
  80. public function setCreatedAt(?\DateTimeInterface $createdAt): self
  81. {
  82. $this->createdAt = $createdAt;
  83. return $this;
  84. }
  85. public function isIsActive(): ?bool
  86. {
  87. return $this->isActive;
  88. }
  89. public function isIsDeleted(): ?bool
  90. {
  91. return $this->isDeleted;
  92. }
  93. }