src/Entity/Cron.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CronRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=CronRepository::class)
  7. */
  8. class Cron
  9. {
  10. /**
  11. * @ORM\Id()
  12. * @ORM\GeneratedValue()
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\Column(type="string", length=255)
  18. */
  19. private $name;
  20. /**
  21. * @ORM\Column(type="string", length=255)
  22. */
  23. private $route;
  24. /**
  25. * @ORM\Column(type="boolean", nullable=true)
  26. */
  27. private $enabled;
  28. /**
  29. * @ORM\Column(type="string", nullable=true)
  30. */
  31. private $minute;
  32. /**
  33. * @ORM\Column(type="string", nullable=true)
  34. */
  35. private $hour;
  36. /**
  37. * @ORM\Column(type="string", nullable=true)
  38. */
  39. private $day;
  40. /**
  41. * @ORM\Column(type="string", nullable=true)
  42. */
  43. private $weekday;
  44. /**
  45. * @ORM\Column(type="string", nullable=true)
  46. */
  47. private $month;
  48. /**
  49. * @ORM\Column(type="string", nullable=true)
  50. */
  51. private $year;
  52. public function getId(): ?int
  53. {
  54. return $this->id;
  55. }
  56. public function getName(): ?string
  57. {
  58. return $this->name;
  59. }
  60. public function setName(string $name): self
  61. {
  62. $this->name = $name;
  63. return $this;
  64. }
  65. public function getRoute(): ?string
  66. {
  67. return $this->route;
  68. }
  69. public function setRoute(string $route): self
  70. {
  71. $this->route = $route;
  72. return $this;
  73. }
  74. public function getEnabled(): ?bool
  75. {
  76. return $this->enabled;
  77. }
  78. public function setEnabled(?bool $enabled): self
  79. {
  80. $this->enabled = $enabled;
  81. return $this;
  82. }
  83. public function getMinute(): ?string
  84. {
  85. return $this->minute;
  86. }
  87. public function setMinute(?string $minute): self
  88. {
  89. $this->minute = $minute;
  90. return $this;
  91. }
  92. public function getHour(): ?string
  93. {
  94. return $this->hour;
  95. }
  96. public function setHour(?string $hour): self
  97. {
  98. $this->hour = $hour;
  99. return $this;
  100. }
  101. public function getDay(): ?string
  102. {
  103. return $this->day;
  104. }
  105. public function setDay(?string $day): self
  106. {
  107. $this->day = $day;
  108. return $this;
  109. }
  110. public function getWeekday(): ?string
  111. {
  112. return $this->weekday;
  113. }
  114. public function setWeekday(?string $weekday): self
  115. {
  116. $this->weekday = $weekday;
  117. return $this;
  118. }
  119. public function getMonth(): ?string
  120. {
  121. return $this->month;
  122. }
  123. public function setMonth(?string $month): self
  124. {
  125. $this->month = $month;
  126. return $this;
  127. }
  128. public function getYear(): ?string
  129. {
  130. return $this->year;
  131. }
  132. public function setYear(?string $year): self
  133. {
  134. $this->year = $year;
  135. return $this;
  136. }
  137. }