src/Entity/ScoreObjective.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ScoreObjectiveRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=ScoreObjectiveRepository::class)
  7. */
  8. class ScoreObjective
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=User::class, inversedBy="scoreObjectives")
  18. * @ORM\JoinColumn(nullable=false)
  19. */
  20. private $user;
  21. /**
  22. * @ORM\Column(type="float")
  23. */
  24. private $value = 0;
  25. /**
  26. * @ORM\Column(type="integer", nullable=true)
  27. */
  28. private $month;
  29. /**
  30. * @ORM\Column(type="integer", nullable=true)
  31. */
  32. private $year;
  33. /**
  34. * @ORM\Column(type="float", nullable=true)
  35. */
  36. private $valueCA = 0;
  37. /**
  38. * @ORM\Column(type="integer", nullable=true)
  39. */
  40. private $valueBooster = 0;
  41. /**
  42. * @ORM\Column(type="float", nullable=true)
  43. */
  44. private $lastYearCa = 0;
  45. /**
  46. * @ORM\Column(type="integer", nullable=true)
  47. */
  48. private $lastYearBooster = 0;
  49. public function getId(): ?int
  50. {
  51. return $this->id;
  52. }
  53. public function getUser(): ?User
  54. {
  55. return $this->user;
  56. }
  57. public function setUser(?User $user): self
  58. {
  59. $this->user = $user;
  60. return $this;
  61. }
  62. public function getValue(): ?float
  63. {
  64. return $this->value;
  65. }
  66. public function setValue(float $value): self
  67. {
  68. $this->value = $value;
  69. return $this;
  70. }
  71. public function getMonth(): ?int
  72. {
  73. return $this->month;
  74. }
  75. public function setMonth(?int $month): self
  76. {
  77. $this->month = $month;
  78. return $this;
  79. }
  80. public function getYear(): ?int
  81. {
  82. return $this->year;
  83. }
  84. public function setYear(?int $year): self
  85. {
  86. $this->year = $year;
  87. return $this;
  88. }
  89. public function getValueCA(): ?float
  90. {
  91. return $this->valueCA;
  92. }
  93. public function setValueCA(?float $valueCA): self
  94. {
  95. $this->valueCA = $valueCA;
  96. return $this;
  97. }
  98. public function getValueBooster(): ?int
  99. {
  100. return $this->valueBooster;
  101. }
  102. public function setValueBooster(?int $valueBooster): self
  103. {
  104. $this->valueBooster = $valueBooster;
  105. return $this;
  106. }
  107. public function getLastYearCa(): ?float
  108. {
  109. return $this->lastYearCa;
  110. }
  111. public function setLastYearCa(?float $lastYearCa): self
  112. {
  113. $this->lastYearCa = $lastYearCa;
  114. return $this;
  115. }
  116. public function getLastYearBooster(): ?int
  117. {
  118. return $this->lastYearBooster;
  119. }
  120. public function setLastYearBooster(?int $lastYearBooster): self
  121. {
  122. $this->lastYearBooster = $lastYearBooster;
  123. return $this;
  124. }
  125. }