src/Entity/Breakdown.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BreakdownRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7.  * @ORM\Entity(repositoryClass=BreakdownRepository::class)
  8.  */
  9. class Breakdown
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      * @Groups({"event:list", "event:item"})
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="integer", nullable=true)
  20.      * @Groups({"event:list", "event:item"})
  21.      */
  22.     private $apiId;
  23.     /**
  24.      * @ORM\Column(type="string", length=255, nullable=true)
  25.      * @Groups({"event:list", "event:item"})
  26.      */
  27.     private $name;
  28.     /**
  29.      * @ORM\Column(type="string", length=255, nullable=true)
  30.      * @Groups({"event:list", "event:item"})
  31.      */
  32.     private $prizeMoney;
  33.     /**
  34.      * @ORM\Column(type="string", length=255, nullable=true)
  35.      * @Groups({"event:list", "event:item"})
  36.      */
  37.     private $points;
  38.     /**
  39.      * @ORM\ManyToOne(targetEntity=Event::class, inversedBy="breakdowns")
  40.      */
  41.     private $event;
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getApiId(): ?int
  47.     {
  48.         return $this->apiId;
  49.     }
  50.     public function setApiId(?int $apiId): self
  51.     {
  52.         $this->apiId $apiId;
  53.         return $this;
  54.     }
  55.     public function getName(): ?string
  56.     {
  57.         return $this->name;
  58.     }
  59.     public function setName(?string $name): self
  60.     {
  61.         $this->name $name;
  62.         return $this;
  63.     }
  64.     public function getPrizeMoney(): ?string
  65.     {
  66.         return $this->prizeMoney;
  67.     }
  68.     public function setPrizeMoney(?string $prizeMoney): self
  69.     {
  70.         $this->prizeMoney $prizeMoney;
  71.         return $this;
  72.     }
  73.     public function getPoints(): ?string
  74.     {
  75.         return $this->points;
  76.     }
  77.     public function setPoints(?string $points): self
  78.     {
  79.         $this->points $points;
  80.         return $this;
  81.     }
  82.     public function getEvent(): ?Event
  83.     {
  84.         return $this->event;
  85.     }
  86.     public function setEvent(?Event $event): self
  87.     {
  88.         $this->event $event;
  89.         return $this;
  90.     }
  91. }