src/Entity/Option.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * Options
  6. *
  7. * @ORM\Table(name="`Option`")
  8. * @ORM\Entity(repositoryClass="App\Entity\OptionRepository")
  9. */
  10. class Option
  11. {
  12. /**
  13. * @var integer
  14. *
  15. * @ORM\Column(name="id", type="integer")
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="AUTO")
  18. */
  19. private $id;
  20. /**
  21. * @var string
  22. *
  23. * @ORM\Column(name="option_key", type="string", length=255)
  24. */
  25. private $key;
  26. /**
  27. * @var string
  28. *
  29. * @ORM\Column(name="option_value", type="text", nullable=true)
  30. */
  31. private $value;
  32. /**
  33. * Get id
  34. *
  35. * @return integer
  36. */
  37. public function getId()
  38. {
  39. return $this->id;
  40. }
  41. /**
  42. * Set optionKey
  43. *
  44. * @param string $key
  45. *
  46. * @return Option
  47. */
  48. public function setKey($key)
  49. {
  50. $this->key = $key;
  51. return $this;
  52. }
  53. /**
  54. * Get optionKey
  55. *
  56. * @return string
  57. */
  58. public function getKey()
  59. {
  60. return $this->key;
  61. }
  62. /**
  63. * Set optionValue
  64. *
  65. * @param string $value
  66. *
  67. * @return Option
  68. */
  69. public function setValue($value)
  70. {
  71. $this->value = $value;
  72. return $this;
  73. }
  74. /**
  75. * Get optionValue
  76. *
  77. * @return string
  78. */
  79. public function getValue()
  80. {
  81. return $this->value;
  82. }
  83. }