vendor/crea/parameter-bundle/src/Entity/ParameterAttributeValue.php line 16

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Crea\ParameterBundle\Entity;
  4. use Crea\ParameterBundle\Repository\ParameterAttributeValueRepository;
  5. use Crea\ToolsBundle\Entity\LifecycleUserIdentifierTrait;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8. * @ORM\Entity(repositoryClass=ParameterAttributeValueRepository::class)
  9. *
  10. * @ORM\Table(name="parameter_attribute_value")
  11. */
  12. class ParameterAttributeValue
  13. {
  14. use LifecycleUserIdentifierTrait;
  15. /**
  16. * @ORM\Id()
  17. *
  18. * @ORM\GeneratedValue()
  19. *
  20. * @ORM\Column(type="integer")
  21. */
  22. protected int $id;
  23. /**
  24. * @ORM\ManyToOne(targetEntity=Parameter::class, inversedBy="parameterAttributeValues")
  25. *
  26. * @ORM\JoinColumn(nullable=false)
  27. */
  28. private ?Parameter $parameter;
  29. /**
  30. * @ORM\ManyToOne(targetEntity=ParameterTypeAttribute::class, inversedBy="parameterAttributeValues")
  31. *
  32. * @ORM\JoinColumn(nullable=false)
  33. */
  34. private ?ParameterTypeAttribute $parameterTypeAttribute;
  35. /**
  36. * @ORM\Column(type="string", length=255, nullable=false)
  37. */
  38. private ?string $value = null;
  39. public function getId(): int
  40. {
  41. return $this->id;
  42. }
  43. public function setId(int $id): self
  44. {
  45. $this->id = $id;
  46. return $this;
  47. }
  48. public function getParameter(): ?Parameter
  49. {
  50. return $this->parameter;
  51. }
  52. public function setParameter(?Parameter $parameter): self
  53. {
  54. $this->parameter = $parameter;
  55. return $this;
  56. }
  57. public function getParameterTypeAttribute(): ?ParameterTypeAttribute
  58. {
  59. return $this->parameterTypeAttribute;
  60. }
  61. public function setParameterTypeAttribute(?ParameterTypeAttribute $parameterTypeAttribute): self
  62. {
  63. $this->parameterTypeAttribute = $parameterTypeAttribute;
  64. return $this;
  65. }
  66. public function getValue(): ?string
  67. {
  68. return $this->value;
  69. }
  70. public function setValue(?string $value): self
  71. {
  72. $this->value = $value;
  73. return $this;
  74. }
  75. }