src/Entity/Core/Gamification/GamificationAnimation.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Core\Gamification;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Table('gamification_animation')]
  5. #[ORM\Entity(repositoryClass: GamificationAnimationRepository::class)]
  6. class GamificationAnimation
  7. {
  8. #[ORM\Column(name: 'id', type: 'integer')]
  9. #[ORM\Id]
  10. #[ORM\GeneratedValue(strategy: 'AUTO')]
  11. private int $id;
  12. #[ORM\Column(name: 'context', length: 16)]
  13. private string $context;
  14. #[ORM\Column(name: 'trigger', length: 16)]
  15. private string $trigger;
  16. #[ORM\Column(name: 'trigger_value')]
  17. private int $triggerValue;
  18. #[ORM\Column(name: 'text', length: 255)]
  19. private string $text;
  20. #[ORM\Column(name: 'animation', length: 32)]
  21. private string $animation;
  22. #[ORM\Column(name: 'extra_points')]
  23. private int $extraPoints;
  24. #[ORM\Column(name: 'priority')]
  25. private int $priority;
  26. public function getId(): int
  27. {
  28. return $this->id;
  29. }
  30. public function setId(int $id): void
  31. {
  32. $this->id = $id;
  33. }
  34. public function getContext(): string
  35. {
  36. return $this->context;
  37. }
  38. public function setContext(string $context): void
  39. {
  40. $this->context = $context;
  41. }
  42. public function getTrigger(): string
  43. {
  44. return $this->trigger;
  45. }
  46. public function setTrigger(string $trigger): void
  47. {
  48. $this->trigger = $trigger;
  49. }
  50. public function getTriggerValue(): int
  51. {
  52. return $this->triggerValue;
  53. }
  54. public function setTriggerValue(int $triggerValue): void
  55. {
  56. $this->triggerValue = $triggerValue;
  57. }
  58. public function getText(): string
  59. {
  60. return $this->text;
  61. }
  62. public function setText(string $text): void
  63. {
  64. $this->text = $text;
  65. }
  66. public function getAnimation(): string
  67. {
  68. return $this->animation;
  69. }
  70. public function setAnimation(string $animation): void
  71. {
  72. $this->animation = $animation;
  73. }
  74. public function getExtraPoints(): int
  75. {
  76. return $this->extraPoints;
  77. }
  78. public function setExtraPoints(int $extraPoints): void
  79. {
  80. $this->extraPoints = $extraPoints;
  81. }
  82. public function getPriority(): int
  83. {
  84. return $this->priority;
  85. }
  86. public function setPriority(int $priority): void
  87. {
  88. $this->priority = $priority;
  89. }
  90. }