src/Entity/ServiceProField.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ServiceProFieldRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=ServiceProFieldRepository::class)
  7. */
  8. class ServiceProField
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=ServicePro::class, inversedBy="serviceProFields")
  18. * @ORM\JoinColumn(nullable=false)
  19. */
  20. private $servicePro;
  21. /**
  22. * @ORM\Column(type="string", length=255)
  23. */
  24. private $label;
  25. /**
  26. * @ORM\Column(type="string", length=16)
  27. */
  28. private $fieldType;
  29. /**
  30. * @ORM\Column(type="integer")
  31. */
  32. private $position;
  33. /**
  34. * @ORM\Column(type="boolean")
  35. */
  36. private $required;
  37. public function __construct()
  38. {
  39. $this->position = 1;
  40. }
  41. public function getId(): ?int
  42. {
  43. return $this->id;
  44. }
  45. public function getServicePro(): ?ServicePro
  46. {
  47. return $this->servicePro;
  48. }
  49. public function setServicePro( ?ServicePro $servicePro ): self
  50. {
  51. $this->servicePro = $servicePro;
  52. return $this;
  53. }
  54. public function getLabel(): ?string
  55. {
  56. return $this->label;
  57. }
  58. public function setLabel( string $label ): self
  59. {
  60. $this->label = $label;
  61. return $this;
  62. }
  63. public function getFieldType(): ?string
  64. {
  65. return $this->fieldType;
  66. }
  67. public function setFieldType( string $fieldType ): self
  68. {
  69. $this->fieldType = $fieldType;
  70. return $this;
  71. }
  72. public function getPosition(): ?int
  73. {
  74. return $this->position;
  75. }
  76. public function setPosition( int $position ): self
  77. {
  78. $this->position = $position;
  79. return $this;
  80. }
  81. public function isRequired(): ?bool
  82. {
  83. return $this->required;
  84. }
  85. public function setRequired( bool $required ): self
  86. {
  87. $this->required = $required;
  88. return $this;
  89. }
  90. }