src/Entity/Fixture.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FixtureRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7.  * @ORM\Entity(repositoryClass=FixtureRepository::class)
  8.  */
  9. class Fixture
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      * @Groups({"round:list", "round:item","event:list","event:item"})
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255)
  20.      * @Groups({"round:list", "round:item","event:list","event:item"})
  21.      */
  22.     private $matchCode;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity=Round::class, inversedBy="fixtures", cascade={"persist"})
  25.      * @ORM\JoinColumn(nullable=false)
  26.      */
  27.     private $round;
  28.     /**
  29.      * @ORM\OneToOne(targetEntity=RoundResult::class, cascade={"persist", "remove"})
  30.      * @ORM\JoinColumn(nullable=true)
  31.      * @Groups({"round:list", "round:item","event:list","event:item"})
  32.      */
  33.     private $result;
  34.     /**
  35.      * @ORM\Column(type="string", length=255, nullable=true)
  36.      * @Groups({"round:list", "round:item","event:list","event:item"})
  37.      */
  38.     private $topPlaceHolderText;
  39.     /**
  40.      * @ORM\Column(type="string", length=255, nullable=true)
  41.      * @Groups({"round:list", "round:item","event:list","event:item"})
  42.      */
  43.     private $bottomPlaceHolderText;
  44.     /**
  45.      * @ORM\Column(type="boolean")
  46.      * @Groups({"round:list", "round:item","event:list","event:item"})
  47.      */
  48.     private $isTopKnown;
  49.     /**
  50.      * @ORM\Column(type="boolean")
  51.      * @Groups({"round:list", "round:item","event:list","event:item"})
  52.      */
  53.     private $isBottomKnown;
  54.     /**
  55.      * @ORM\Column(type="integer", nullable=true)
  56.      * @Groups({"round:list", "round:item","event:list","event:item"})
  57.      */
  58.     private $winner;
  59.     /**
  60.      * @ORM\Column(type="string", length=255, nullable=true)
  61.      * @Groups({"round:list", "round:item","event:list","event:item"})
  62.      */
  63.     private $resultString;
  64.     /**
  65.      * @ORM\OneToOne(targetEntity=DrawLine::class, inversedBy="fixture", cascade={"persist", "remove"})
  66.      * @ORM\JoinColumn(nullable=true)
  67.      * @Groups({"round:list", "round:item","event:list","event:item"})
  68.      */
  69.     private $drawLineTop;
  70.     /**
  71.      * @ORM\OneToOne(targetEntity=DrawLine::class, inversedBy="fixture", cascade={"persist", "remove"})
  72.      * @ORM\JoinColumn(nullable=true)
  73.      * @Groups({"round:list", "round:item","event:list","event:item"})
  74.      */
  75.     private $drawLineBottom;
  76.     /**
  77.      * @ORM\Column(type="boolean", nullable=true)
  78.      * @Groups({"round:list", "round:item","event:list","event:item"})
  79.      */
  80.     private $isDoubles;
  81.     /**
  82.      * @ORM\Column(type="string", length=255, nullable=true)
  83.      * @Groups({"round:list", "round:item","event:list","event:item"})
  84.      */
  85.     private $scoringType;
  86.     /**
  87.      * @ORM\Column(type="integer", nullable=true)
  88.      * @Groups({"round:list", "round:item","event:list","event:item"})
  89.      */
  90.     private $numSet;
  91.     /**
  92.      * @ORM\Column(type="integer", nullable=true)
  93.      * @Groups({"round:list", "round:item","event:list","event:item"})
  94.      */
  95.     private $courtSequence;
  96.     /**
  97.      * @ORM\Column(type="integer", nullable=true)
  98.      * @Groups({"round:list", "round:item","event:list","event:item"})
  99.      */
  100.     private $day;
  101.     /**
  102.      * @ORM\Column(type="string", length=255, nullable=true)
  103.      * @Groups({"round:list", "round:item","event:list","event:item"})
  104.      */
  105.     private $resultReason;
  106.     /**
  107.      * @ORM\Column(type="string", length=255, nullable=true)
  108.      * @Groups({"round:list", "round:item","event:list","event:item"})
  109.      */
  110.     private $resultType;
  111.     /**
  112.      * @ORM\OneToOne(targetEntity=TeamPlayer::class, cascade={"persist", "remove"})
  113.      * @Groups({"round:list", "round:item","event:list","event:item"})
  114.      */
  115.     private $teamTop;
  116.     /**
  117.      * @ORM\OneToOne(targetEntity=TeamPlayer::class, cascade={"persist", "remove"})
  118.      * @Groups({"round:list", "round:item","event:list","event:item"})
  119.      */
  120.     private $teamBottom;
  121.     public function getId(): ?int
  122.     {
  123.         return $this->id;
  124.     }
  125.     public function getMatchCode(): ?string
  126.     {
  127.         return $this->matchCode;
  128.     }
  129.     public function setMatchCode(string $matchCode): self
  130.     {
  131.         $this->matchCode $matchCode;
  132.         return $this;
  133.     }
  134.     public function getRound(): ?Round
  135.     {
  136.         return $this->round;
  137.     }
  138.     public function setRound(?Round $round): self
  139.     {
  140.         $this->round $round;
  141.         return $this;
  142.     }
  143.     public function getResult(): ?RoundResult
  144.     {
  145.         return $this->result;
  146.     }
  147.     public function setResult(?RoundResult $result): self
  148.     {
  149.         $this->result $result;
  150.         return $this;
  151.     }
  152.     public function getTopPlaceHolderText(): ?string
  153.     {
  154.         return $this->topPlaceHolderText;
  155.     }
  156.     public function setTopPlaceHolderText(?string $topPlaceHolderText): self
  157.     {
  158.         $this->topPlaceHolderText $topPlaceHolderText;
  159.         return $this;
  160.     }
  161.     public function getBottomPlaceHolderText(): ?string
  162.     {
  163.         return $this->bottomPlaceHolderText;
  164.     }
  165.     public function setBottomPlaceHolderText(?string $bottomPlaceHolderText): self
  166.     {
  167.         $this->bottomPlaceHolderText $bottomPlaceHolderText;
  168.         return $this;
  169.     }
  170.     public function isIsTopKnown(): ?bool
  171.     {
  172.         return $this->isTopKnown;
  173.     }
  174.     public function setIsTopKnown(bool $isTopKnown): self
  175.     {
  176.         $this->isTopKnown $isTopKnown;
  177.         return $this;
  178.     }
  179.     public function isIsBottomKnown(): ?bool
  180.     {
  181.         return $this->isBottomKnown;
  182.     }
  183.     public function setIsBottomKnown(bool $isBottomKnown): self
  184.     {
  185.         $this->isBottomKnown $isBottomKnown;
  186.         return $this;
  187.     }
  188.     public function getWinner(): ?int
  189.     {
  190.         return $this->winner;
  191.     }
  192.     public function setWinner(?int $winner): self
  193.     {
  194.         $this->winner $winner;
  195.         return $this;
  196.     }
  197.     public function getResultString(): ?string
  198.     {
  199.         return $this->resultString;
  200.     }
  201.     public function setResultString(?string $resultString): self
  202.     {
  203.         $this->resultString $resultString;
  204.         return $this;
  205.     }
  206.     public function getDrawLineTop(): ?DrawLine
  207.     {
  208.         return $this->drawLineTop;
  209.     }
  210.     public function setDrawLineTop(?DrawLine $drawLineTop): self
  211.     {
  212.         $this->drawLineTop $drawLineTop;
  213.         return $this;
  214.     }
  215.     public function getDrawLineBottom(): ?DrawLine
  216.     {
  217.         return $this->drawLineBottom;
  218.     }
  219.     public function setDrawLineBottom(?DrawLine $drawLineBottom): self
  220.     {
  221.         $this->drawLineBottom $drawLineBottom;
  222.         return $this;
  223.     }
  224.     public function getIsDoubles(): ?bool
  225.     {
  226.         return $this->isDoubles;
  227.     }
  228.     public function setIsDoubles(?bool $isDoubles): self
  229.     {
  230.         $this->isDoubles $isDoubles;
  231.         return $this;
  232.     }
  233.     public function getScoringType(): ?string
  234.     {
  235.         return $this->scoringType;
  236.     }
  237.     public function setScoringType(?string $scoringType): self
  238.     {
  239.         $this->scoringType $scoringType;
  240.         return $this;
  241.     }
  242.     public function getNumSet(): ?int
  243.     {
  244.         return $this->numSet;
  245.     }
  246.     public function setNumSet(?int $numSet): self
  247.     {
  248.         $this->numSet $numSet;
  249.         return $this;
  250.     }
  251.     public function getCourtSequence(): ?int
  252.     {
  253.         return $this->courtSequence;
  254.     }
  255.     public function setCourtSequence(?int $courtSequence): self
  256.     {
  257.         $this->courtSequence $courtSequence;
  258.         return $this;
  259.     }
  260.     public function getDay(): ?int
  261.     {
  262.         return $this->day;
  263.     }
  264.     public function setDay(?int $day): self
  265.     {
  266.         $this->day $day;
  267.         return $this;
  268.     }
  269.     public function getResultReason(): ?string
  270.     {
  271.         return $this->resultReason;
  272.     }
  273.     public function setResultReason(?string $resultReason): self
  274.     {
  275.         $this->resultReason $resultReason;
  276.         return $this;
  277.     }
  278.     public function getResultType(): ?string
  279.     {
  280.         return $this->resultType;
  281.     }
  282.     public function setResultType(?string $resultType): self
  283.     {
  284.         $this->resultType $resultType;
  285.         return $this;
  286.     }
  287.     public function getTeamTop(): ?TeamPlayer
  288.     {
  289.         return $this->teamTop;
  290.     }
  291.     public function setTeamTop(?TeamPlayer $teamTop): self
  292.     {
  293.         $this->teamTop $teamTop;
  294.         return $this;
  295.     }
  296.     public function getTeamBottom(): ?TeamPlayer
  297.     {
  298.         return $this->teamBottom;
  299.     }
  300.     public function setTeamBottom(?TeamPlayer $teamBottom): self
  301.     {
  302.         $this->teamBottom $teamBottom;
  303.         return $this;
  304.     }
  305. }