src/Entity/Score.php line 11

Open in your IDE?
  1. <?php
  2.     namespace App\Entity;
  3.     use App\Repository\ScoreRepository;
  4.     use Doctrine\ORM\Mapping as ORM;
  5.     /**
  6.      * @ORM\Entity(repositoryClass=ScoreRepository::class)
  7.      */
  8.     class Score
  9.     {
  10.         const PENDING                         0;
  11.         const CONSOLIDATE_BY_RESTRICTED_ADMIN 1;
  12.         const CONSOLIDATE_BY_ADMIN            2;
  13.         const TRANSFORMED_TO_POINT            3;
  14.         /**
  15.          * @ORM\Id
  16.          * @ORM\GeneratedValue
  17.          * @ORM\Column(type="integer")
  18.          */
  19.         private $id;
  20.         /**
  21.          * @ORM\Column(type="float")
  22.          */
  23.         private $value 0;
  24.         /**
  25.          * @ORM\ManyToOne(targetEntity=User::class, inversedBy="scores")
  26.          */
  27.         private $user;
  28.         /**
  29.          * @ORM\Column(type="float")
  30.          */
  31.         private $valueBooster 0;
  32.         /**
  33.          * @ORM\Column(type="integer")
  34.          */
  35.         private $state 0;
  36.         /**
  37.          * @ORM\Column(type="integer", nullable=true)
  38.          */
  39.         private $month;
  40.         /**
  41.          * @ORM\Column(type="integer", nullable=true)
  42.          */
  43.         private $year;
  44.         public function getId(): ?int
  45.         {
  46.             return $this->id;
  47.         }
  48.         public function getValue(): ?float
  49.         {
  50.             return $this->value;
  51.         }
  52.         public function setValuefloat $value ): self
  53.         {
  54.             $this->value $value;
  55.             return $this;
  56.         }
  57.         public function getUser(): ?User
  58.         {
  59.             return $this->user;
  60.         }
  61.         public function setUser( ?User $user ): self
  62.         {
  63.             $this->user $user;
  64.             return $this;
  65.         }
  66.         public function getValueBooster(): ?float
  67.         {
  68.             return $this->valueBooster;
  69.         }
  70.         public function setValueBooster( ?float $valueBooster ): self
  71.         {
  72.             $this->valueBooster $valueBooster;
  73.             return $this;
  74.         }
  75.         public function getState(): ?int
  76.         {
  77.             return $this->state;
  78.         }
  79.         public function setStateint $state ): self
  80.         {
  81.             $this->state $state;
  82.             return $this;
  83.         }
  84.         public function getMonth(): ?int
  85.         {
  86.             return $this->month;
  87.         }
  88.         public function setMonth( ?int $month ): self
  89.         {
  90.             $this->month $month;
  91.             return $this;
  92.         }
  93.         public function getYear(): ?int
  94.         {
  95.             return $this->year;
  96.         }
  97.         public function setYear( ?int $year ): self
  98.         {
  99.             $this->year $year;
  100.             return $this;
  101.         }
  102.     }