src/Entity/QuoteLines.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\QuoteLinesRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClass: QuoteLinesRepository::class)]
  7. class QuoteLines
  8. {
  9. #[ORM\Id]
  10. #[ORM\GeneratedValue]
  11. #[ORM\Column]
  12. private ?int $id = null;
  13. #[ORM\Column(length: 512)]
  14. private ?string $line = null;
  15. #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
  16. private ?\DateTimeInterface $created = null;
  17. #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
  18. private ?\DateTimeInterface $updated = null;
  19. #[ORM\Column(type: Types::INTEGER, nullable: true)]
  20. private ?int $position = null;
  21. public function __construct()
  22. {
  23. $this->created = new \DateTime();
  24. $this->updated = new \DateTime();
  25. $this->position = 1;
  26. }
  27. public function getId(): ?int
  28. {
  29. return $this->id;
  30. }
  31. public function getLine(): ?string
  32. {
  33. return $this->line;
  34. }
  35. public function setLine(string $line): static
  36. {
  37. $this->line = $line;
  38. return $this;
  39. }
  40. public function getCreated(): ?\DateTimeInterface
  41. {
  42. return $this->created;
  43. }
  44. public function setCreated(?\DateTimeInterface $created): static
  45. {
  46. $this->created = $created;
  47. return $this;
  48. }
  49. public function getUpdated(): ?\DateTimeInterface
  50. {
  51. return $this->updated;
  52. }
  53. public function setUpdated(?\DateTimeInterface $updated): static
  54. {
  55. $this->updated = $updated;
  56. return $this;
  57. }
  58. public function getPosition(): ?int
  59. {
  60. return $this->position;
  61. }
  62. public function setPosition(?int $position): static
  63. {
  64. $this->position = $position;
  65. return $this;
  66. }
  67. }