src/Entity/PropertyManagementService.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PropertyManagementServiceRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClass: PropertyManagementServiceRepository::class)]
  7. class PropertyManagementService
  8. {
  9. #[ORM\Id]
  10. #[ORM\GeneratedValue]
  11. #[ORM\Column]
  12. private ?int $id = null;
  13. #[ORM\Column(length: 255)]
  14. private ?string $category = null;
  15. #[ORM\Column(length: 20, options: ['default' => 'property'])]
  16. private string $serviceType = 'property';
  17. #[ORM\Column(length: 255, nullable: true)]
  18. private ?string $subCategory = null;
  19. #[ORM\Column(length: 255)]
  20. private ?string $title = null;
  21. #[ORM\Column(type: Types::TEXT, nullable: true)]
  22. private ?string $description = null;
  23. #[ORM\Column(type: Types::INTEGER, options: ['default' => 0])]
  24. private int $sortOrder = 0;
  25. public function getId(): ?int
  26. {
  27. return $this->id;
  28. }
  29. public function getCategory(): ?string
  30. {
  31. return $this->category;
  32. }
  33. public function setCategory(string $category): self
  34. {
  35. $this->category = $category;
  36. return $this;
  37. }
  38. public function getServiceType(): string
  39. {
  40. return $this->serviceType;
  41. }
  42. public function setServiceType(string $serviceType): self
  43. {
  44. $this->serviceType = $serviceType;
  45. return $this;
  46. }
  47. public function getSubCategory(): ?string
  48. {
  49. return $this->subCategory;
  50. }
  51. public function setSubCategory(?string $subCategory): self
  52. {
  53. $this->subCategory = $subCategory;
  54. return $this;
  55. }
  56. public function getTitle(): ?string
  57. {
  58. return $this->title;
  59. }
  60. public function setTitle(string $title): self
  61. {
  62. $this->title = $title;
  63. return $this;
  64. }
  65. public function getDescription(): ?string
  66. {
  67. return $this->description;
  68. }
  69. public function setDescription(?string $description): self
  70. {
  71. $this->description = $description;
  72. return $this;
  73. }
  74. public function getSortOrder(): int
  75. {
  76. return $this->sortOrder;
  77. }
  78. public function setSortOrder(int $sortOrder): self
  79. {
  80. $this->sortOrder = $sortOrder;
  81. return $this;
  82. }
  83. }