src/Entity/Hook.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * Hook
  6. *
  7. * @ORM\Table(name="hooks")
  8. * @ORM\Entity
  9. */
  10. class Hook {
  11. /**
  12. * @var integer
  13. *
  14. * @ORM\Column(name="id", type="integer")
  15. * @ORM\Id
  16. * @ORM\GeneratedValue(strategy="AUTO")
  17. */
  18. private $id;
  19. /**
  20. * @var string
  21. *
  22. * @ORM\Column(name="title", type="string", length=255)
  23. */
  24. private $title;
  25. /**
  26. * @var string
  27. *
  28. * @ORM\Column(name="key", type="string", length=50)
  29. */
  30. private $key;
  31. /**
  32. * @var string
  33. *
  34. * @ORM\Column(name="template", type="string", length=255)
  35. */
  36. private $template;
  37. /**
  38. * @var integer
  39. *
  40. * @ORM\Column(name="width", type="integer", nullable=true)
  41. */
  42. private $width;
  43. /**
  44. * @var integer
  45. *
  46. * @ORM\Column(name="height", type="integer", nullable=true)
  47. */
  48. private $height;
  49. /**
  50. * Get id
  51. *
  52. * @return integer
  53. */
  54. public function getId() {
  55. return $this->id;
  56. }
  57. /**
  58. * Set title
  59. *
  60. * @param string $title
  61. * @return Hook
  62. */
  63. public function setTitle($title) {
  64. $this->title = $title;
  65. return $this;
  66. }
  67. /**
  68. * Get title
  69. *
  70. * @return string
  71. */
  72. public function getTitle() {
  73. return $this->title;
  74. }
  75. /**
  76. * @return the $template
  77. */
  78. public function getTemplate() {
  79. return $this->template;
  80. }
  81. /**
  82. * @param string $template
  83. */
  84. public function setTemplate($template) {
  85. $this->template = $template;
  86. }
  87. /**
  88. * @return the $key
  89. */
  90. public function getKey() {
  91. return $this->key;
  92. }
  93. /**
  94. * @param string $key
  95. */
  96. public function setKey($key) {
  97. $this->key = $key;
  98. }
  99. /**
  100. * @return the $width
  101. */
  102. public function getWidth() {
  103. return $this->width;
  104. }
  105. /**
  106. * @return the $height
  107. */
  108. public function getHeight() {
  109. return $this->height;
  110. }
  111. /**
  112. * @param number $width
  113. */
  114. public function setWidth($width) {
  115. $this->width = $width;
  116. }
  117. /**
  118. * @param number $height
  119. */
  120. public function setHeight($height) {
  121. $this->height = $height;
  122. }
  123. }