EntityTag.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?php
  2. use Doctrine\ORM\Mapping as ORM;
  3. /**
  4. * EntityTag
  5. *
  6. * @Table(name="tag")
  7. * @Entity
  8. */
  9. class EntityTag
  10. {
  11. /**
  12. * @var integer
  13. *
  14. * @Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  15. * @Id
  16. * @GeneratedValue(strategy="IDENTITY")
  17. */
  18. private $id;
  19. /**
  20. * @var string
  21. *
  22. * @Column(name="tag", type="string", length=255, precision=0, scale=0, nullable=false, unique=false)
  23. */
  24. private $tag;
  25. /**
  26. * @var integer
  27. *
  28. * @Column(name="field_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  29. */
  30. private $fieldId;
  31. /**
  32. * @var integer
  33. *
  34. * @Column(name="count", type="integer", precision=0, scale=0, nullable=false, unique=false)
  35. */
  36. private $count;
  37. /**
  38. * Get id
  39. *
  40. * @return integer
  41. */
  42. public function getId()
  43. {
  44. return $this->id;
  45. }
  46. /**
  47. * Set tag
  48. *
  49. * @param string $tag
  50. * @return EntityTag
  51. */
  52. public function setTag($tag)
  53. {
  54. $this->tag = $tag;
  55. return $this;
  56. }
  57. /**
  58. * Get tag
  59. *
  60. * @return string
  61. */
  62. public function getTag()
  63. {
  64. return $this->tag;
  65. }
  66. /**
  67. * Set fieldId
  68. *
  69. * @param integer $fieldId
  70. * @return EntityTag
  71. */
  72. public function setFieldId($fieldId)
  73. {
  74. $this->fieldId = $fieldId;
  75. return $this;
  76. }
  77. /**
  78. * Get fieldId
  79. *
  80. * @return integer
  81. */
  82. public function getFieldId()
  83. {
  84. return $this->fieldId;
  85. }
  86. /**
  87. * Set count
  88. *
  89. * @param integer $count
  90. * @return EntityTag
  91. */
  92. public function setCount($count)
  93. {
  94. $this->count = $count;
  95. return $this;
  96. }
  97. /**
  98. * Get count
  99. *
  100. * @return integer
  101. */
  102. public function getCount()
  103. {
  104. return $this->count;
  105. }
  106. }