src/Entity/CompanySettings.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. * CompanySettings
  7. *
  8. * @ORM\Table(name="company_settings", indexes={@ORM\Index(name="company_id", columns={"company_id"})})
  9. * @ORM\Entity(repositoryClass="App\Repository\CompanySettingsRepository")
  10. */
  11. class CompanySettings
  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="system_language", type="string", length=10, nullable=false)
  25. */
  26. private $systemLanguage;
  27. /**
  28. * @var string|null
  29. *
  30. * @ORM\Column(name="datetime_format", type="string", length=255, nullable=true)
  31. */
  32. private $datetimeFormat;
  33. /**
  34. * @var string|null
  35. *
  36. * @ORM\Column(name="timezone", type="string", length=255, nullable=true)
  37. */
  38. private $timezone;
  39. /**
  40. * @var \DateTime|null
  41. *
  42. * @ORM\Column(name="missed_audit_cron_time", type="time", nullable=true)
  43. */
  44. private $missedAuditCronTime;
  45. /**
  46. * @var \DateTime|null
  47. *
  48. * @ORM\Column(name="missed_audit_last_cron_date", type="datetime", nullable=true)
  49. */
  50. private $missedAuditLastCronDate;
  51. /**
  52. * @var \DateTime|null
  53. *
  54. * @ORM\Column(name="auto_schedule_operator_cron_time", type="time", nullable=true)
  55. */
  56. private $autoScheduleOperatorCronTime;
  57. /**
  58. * @var \DateTime|null
  59. *
  60. * @ORM\Column(name="auto_schedule_operator_last_crone_date", type="datetime", nullable=true)
  61. */
  62. private $autoScheduleOperatorLastCroneDate;
  63. /**
  64. * @var int
  65. *
  66. * @ORM\Column(name="junk_file_expire", type="integer", nullable=false, options={"default"="30"})
  67. */
  68. private $junkFileExpire = 30;
  69. /**
  70. * @var bool
  71. *
  72. * @ORM\Column(name="enable_send_delay_audit_email", type="boolean", nullable=false)
  73. */
  74. private $enableSendDelayAuditEmail = '0';
  75. /**
  76. * @var \Company
  77. *
  78. * @ORM\ManyToOne(targetEntity="Company")
  79. * @ORM\JoinColumns({
  80. * @ORM\JoinColumn(name="company_id", referencedColumnName="id")
  81. * })
  82. */
  83. private $company;
  84. public function getId(): ?int
  85. {
  86. return $this->id;
  87. }
  88. public function getSystemLanguage(): ?string
  89. {
  90. return $this->systemLanguage;
  91. }
  92. public function setSystemLanguage(string $systemLanguage): self
  93. {
  94. $this->systemLanguage = $systemLanguage;
  95. return $this;
  96. }
  97. public function getDatetimeFormat(): ?string
  98. {
  99. return $this->datetimeFormat;
  100. }
  101. public function setDatetimeFormat(?string $datetimeFormat): self
  102. {
  103. $this->datetimeFormat = $datetimeFormat;
  104. return $this;
  105. }
  106. public function getTimezone(): ?string
  107. {
  108. return $this->timezone;
  109. }
  110. public function setTimezone(?string $timezone): self
  111. {
  112. $this->timezone = $timezone;
  113. return $this;
  114. }
  115. public function getMissedAuditCronTime(): ?\DateTimeInterface
  116. {
  117. return $this->missedAuditCronTime;
  118. }
  119. public function setMissedAuditCronTime(?\DateTimeInterface $missedAuditCronTime): self
  120. {
  121. $this->missedAuditCronTime = $missedAuditCronTime;
  122. return $this;
  123. }
  124. public function getMissedAuditLastCronDate(): ?\DateTimeInterface
  125. {
  126. return $this->missedAuditLastCronDate;
  127. }
  128. public function setMissedAuditLastCronDate(?\DateTimeInterface $missedAuditLastCronDate): self
  129. {
  130. $this->missedAuditLastCronDate = $missedAuditLastCronDate;
  131. return $this;
  132. }
  133. public function getAutoScheduleOperatorCronTime(): ?\DateTimeInterface
  134. {
  135. return $this->autoScheduleOperatorCronTime;
  136. }
  137. public function setAutoScheduleOperatorCronTime(?\DateTimeInterface $autoScheduleOperatorCronTime): self
  138. {
  139. $this->autoScheduleOperatorCronTime = $autoScheduleOperatorCronTime;
  140. return $this;
  141. }
  142. public function getAutoScheduleOperatorLastCroneDate(): ?\DateTimeInterface
  143. {
  144. return $this->autoScheduleOperatorLastCroneDate;
  145. }
  146. public function setAutoScheduleOperatorLastCroneDate(?\DateTimeInterface $autoScheduleOperatorLastCroneDate): self
  147. {
  148. $this->autoScheduleOperatorLastCroneDate = $autoScheduleOperatorLastCroneDate;
  149. return $this;
  150. }
  151. public function getJunkFileExpire(): ?int
  152. {
  153. return $this->junkFileExpire;
  154. }
  155. public function setJunkFileExpire(int $junkFileExpire): self
  156. {
  157. $this->junkFileExpire = $junkFileExpire;
  158. return $this;
  159. }
  160. public function isEnableSendDelayAuditEmail(): ?bool
  161. {
  162. return $this->enableSendDelayAuditEmail;
  163. }
  164. public function setEnableSendDelayAuditEmail(bool $enableSendDelayAuditEmail): static
  165. {
  166. $this->enableSendDelayAuditEmail = $enableSendDelayAuditEmail;
  167. return $this;
  168. }
  169. public function getCompany(): ?Company
  170. {
  171. return $this->company;
  172. }
  173. public function setCompany(?Company $company): self
  174. {
  175. $this->company = $company;
  176. return $this;
  177. }
  178. }