src/Entity/Game.php line 629

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Locality;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Component\HttpFoundation\File\File;
  8. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  9. /**
  10.  * @ORM\Entity(repositoryClass="App\Repository\GameRepository")
  11.  * @Vich\Uploadable
  12.  */
  13. class Game
  14. {
  15.   /**
  16.    * @ORM\Id()
  17.    * @ORM\GeneratedValue()
  18.    * @ORM\Column(type="integer")
  19.    */
  20.   private $id;
  21.   /**
  22.    * @ORM\ManyToOne(targetEntity="App\Entity\Season", inversedBy="games")
  23.    * @ORM\JoinColumn(nullable=false)
  24.    */
  25.   private $season;
  26.   /**
  27.    * @ORM\Column(type="string", length=255)
  28.    */
  29.   private $rival;
  30.   /**
  31.    * @ORM\OneToOne(targetEntity=Locality::class)
  32.    */
  33.   private $locality;
  34.   /**
  35.    * @ORM\Column(type="integer")
  36.    */
  37.   private $day;
  38.   /**
  39.    * @ORM\Column(type="datetime")
  40.    */
  41.   private $date;
  42.   /**
  43.    * @ORM\Column(type="integer")
  44.    */
  45.   private $goals;
  46.   /**
  47.    * @ORM\Column(type="integer")
  48.    */
  49.   private $rivalGoals;
  50.   /**
  51.    * @ORM\Column(type="string", length=255, nullable=true)
  52.    */
  53.   private $image;
  54.   /**
  55.    * @Vich\UploadableField(mapping="game_images", fileNameProperty="image")
  56.    * @var File
  57.    */
  58.   private $imageFile;
  59.   /**
  60.    * @ORM\Column(type="datetime", nullable=true)
  61.    * @var \DateTime
  62.    */
  63.   private $updatedAt;
  64.   /**
  65.    * @ORM\OneToOne(targetEntity="App\Entity\Convocatoria", mappedBy="game", cascade={"persist", "remove"})
  66.    */
  67.   private $convocatoria;
  68.   /**
  69.    * @ORM\OneToMany(targetEntity=Minutes::class, mappedBy="game_id")
  70.    */
  71.   private $minutes;
  72.   /**
  73.    * @ORM\OneToOne(targetEntity=Competition::class)
  74.    */
  75.   private $competition;
  76.   /**
  77.    * @ORM\Column(type="integer")
  78.    */
  79.   private $shots_goal;
  80.   /**
  81.    * @ORM\Column(type="integer")
  82.    */
  83.   private $shots_opponent;
  84.   /**
  85.    * @ORM\Column(type="integer")
  86.    */
  87.   private $corners_favor;
  88.   /**
  89.    * @ORM\Column(type="integer")
  90.    */
  91.   private $corners_against;
  92.   /**
  93.    * @ORM\Column(type="integer")
  94.    */
  95.   private $penalties_favor;
  96.   /**
  97.    * @ORM\Column(type="integer")
  98.    */
  99.   private $penalties_against;
  100.   /**
  101.    * @ORM\Column(type="integer")
  102.    */
  103.   private $fouls_favor;
  104.   /**
  105.    * @ORM\Column(type="integer")
  106.    */
  107.   private $fouls_against;
  108.   /**
  109.    * @ORM\OneToOne(targetEntity=GameAlignment::class, inversedBy="game", cascade={"persist", "remove"})
  110.    */
  111.   private $alignment;
  112.   /**
  113.    * @ORM\Column(type="integer", options={"default" : 90})
  114.    */
  115.   private $timeMatch;
  116.   /**
  117.    * @ORM\Column(type="integer", options={"default" : 11})
  118.    */
  119.   private $category;
  120.   /**
  121.    * @ORM\OneToOne(targetEntity=GameAlignment::class, inversedBy="game", cascade={"persist", "remove"})
  122.    */
  123.   private $rival_alignment;
  124.   /**
  125.    * @ORM\Column(type="integer", options={"default" : 0})
  126.    */
  127.   private $total_shots;
  128.   /**
  129.    * @ORM\Column(type="integer", options={"default" : 0})
  130.    */
  131.   private $total_shots_against;
  132.   /**
  133.    * @ORM\Column(type="integer", options={"default" : 0})
  134.    */
  135.   private $yellow_cards;
  136.   /**
  137.    * @ORM\Column(type="integer", options={"default" : 0})
  138.    */
  139.   private $yellow_cards_against;
  140.   /**
  141.    * @ORM\Column(type="integer", options={"default" : 0})
  142.    */
  143.   private $red_cards;
  144.   /**
  145.    * @ORM\Column(type="integer", options={"default" : 0})
  146.    */
  147.   private $red_cards_against;
  148.   /**
  149.    * @ORM\Column(type="integer", options={"default" : 0})
  150.    */
  151.   private $currentPositionLeague;
  152.   /**
  153.    * @ORM\OneToMany(targetEntity=KilometersTraveled::class, mappedBy="game")
  154.    */
  155.   private $kilometersTraveleds;
  156.   /**
  157.    * @ORM\OneToMany(targetEntity=ShotsOnGoal::class, mappedBy="game")
  158.    */
  159.   private $shotsOnGoals;
  160.   /**
  161.    * @ORM\OneToMany(targetEntity=GamePlayerStatistics::class, mappedBy="game")
  162.    */
  163.   private $seasonplayer;
  164.   /**
  165.    * @ORM\OneToMany(targetEntity=GamePlayerStatistics::class, mappedBy="game")
  166.    */
  167.   private $gamePlayerStatistics;
  168.   /**
  169.    * @ORM\Column(type="integer", nullable=true)
  170.    */
  171.   private $opponentCurrentPositionLeague;
  172.   /**
  173.    * @ORM\ManyToOne(targetEntity=Difficulty::class, inversedBy="pressureRivals")
  174.    */
  175.   private $pressureRival;
  176.   /**
  177.    * @ORM\Column(type="datetime", nullable=true)
  178.    * @var \DateTime
  179.    */
  180.   private $deletedAt;
  181.   /**
  182.    * @ORM\Column(type="integer", options={"default" : 0})
  183.    */
  184.   private $offsidesFavor;
  185.   /**
  186.    * @ORM\Column(type="integer", options={"default" : 0})
  187.    */
  188.   private $offsidesAgainst;
  189.   /**
  190.    * @ORM\Column(type="integer", options={"default" : 0})
  191.    */
  192.   private $goalKicksFavor;
  193.   /**
  194.    * @ORM\Column(type="integer", options={"default" : 0})
  195.    */
  196.   private $goalKicksAgainst;
  197.   /**
  198.    * @ORM\Column(type="integer", options={"default" : 0})
  199.    */
  200.   private $entriesIntoTheBoxFavor;
  201.   /**
  202.    * @ORM\Column(type="integer", options={"default" : 0})
  203.    */
  204.   private $entriesIntoTheBoxAgainst;
  205.   public function __construct()
  206.   {
  207.     $this->minutes = new ArrayCollection();
  208.     $this->kilometersTraveleds = new ArrayCollection();
  209.     $this->shotsOnGoals = new ArrayCollection();
  210.     $this->seasonplayer = new ArrayCollection();
  211.     $this->gamePlayerStatistics = new ArrayCollection();
  212.   }
  213.   public function getId(): ?int
  214.   {
  215.     return $this->id;
  216.   }
  217.   public function getSeason(): ?Season
  218.   {
  219.     return $this->season;
  220.   }
  221.   public function setSeason(?Season $season): self
  222.   {
  223.     $this->season $season;
  224.     return $this;
  225.   }
  226.   public function getRival(): ?string
  227.   {
  228.     return $this->rival;
  229.   }
  230.   public function setRival(string $rival): self
  231.   {
  232.     $this->rival $rival;
  233.     return $this;
  234.   }
  235.   public function getLocality(): ?Locality
  236.   {
  237.     return $this->locality;
  238.   }
  239.   public function setLocality(Locality $locality): self
  240.   {
  241.     $this->locality $locality;
  242.     return $this;
  243.   }
  244.   public function getDay(): ?int
  245.   {
  246.     return $this->day;
  247.   }
  248.   public function setDay(int $day): self
  249.   {
  250.     $this->day $day;
  251.     return $this;
  252.   }
  253.   public function getDate(): ?\DateTimeInterface
  254.   {
  255.     return $this->date;
  256.   }
  257.   public function setDate(\DateTimeInterface $date): self
  258.   {
  259.     $this->date $date;
  260.     return $this;
  261.   }
  262.   public function getGoals(): ?int
  263.   {
  264.     return $this->goals;
  265.   }
  266.   public function setGoals(int $goals): self
  267.   {
  268.     $this->goals $goals;
  269.     return $this;
  270.   }
  271.   public function getRivalGoals(): ?int
  272.   {
  273.     return $this->rivalGoals;
  274.   }
  275.   public function setRivalGoals(int $rivalGoals): self
  276.   {
  277.     $this->rivalGoals $rivalGoals;
  278.     return $this;
  279.   }
  280.   /**
  281.    * @return \DateTime
  282.    */
  283.   public function getUpdatedAt(): \DateTime
  284.   {
  285.     return $this->updatedAt;
  286.   }
  287.   /**
  288.    * @param \DateTime $updatedAt
  289.    * @return Game
  290.    */
  291.   public function setUpdatedAt(\DateTime $updatedAt): Game
  292.   {
  293.     $this->updatedAt $updatedAt;
  294.     return $this;
  295.   }
  296.   /**
  297.    * @param File|null $image
  298.    * @return Game
  299.    */
  300.   public function setImageFile(File $image null)
  301.   {
  302.     $this->imageFile $image;
  303.     // VERY IMPORTANT:
  304.     // It is required that at least one field changes if you are using Doctrine,
  305.     // otherwise the event listeners won't be called and the file is lost
  306.     if ($image) {
  307.       // if 'updatedAt' is not defined in your entity, use another property
  308.       $this->updatedAt = new \DateTime('now');
  309.     }
  310.     return $this;
  311.   }
  312.   public function getImageFile()
  313.   {
  314.     return $this->imageFile;
  315.   }
  316.   public function getImage(): ?string
  317.   {
  318.     return $this->image;
  319.   }
  320.   public function setImage(?string $image): self
  321.   {
  322.     $this->image $image;
  323.     return $this;
  324.   }
  325.   public function getConvocatoria(): ?Convocatoria
  326.   {
  327.     return $this->convocatoria;
  328.   }
  329.   public function setConvocatoria(Convocatoria $convocatoria): self
  330.   {
  331.     $this->convocatoria $convocatoria;
  332.     // set the owning side of the relation if necessary
  333.     if ($convocatoria->getGame() !== $this) {
  334.       $convocatoria->setGame($this);
  335.     }
  336.     return $this;
  337.   }
  338.   public function __toArray($imagePath)
  339.   {
  340.     return [
  341.       "id" => $this->getId(),
  342.       "rival" => $this->getRival(),
  343.       "locality" => $this->getLocality() ? $this->getLocality()->getName() : null,
  344.       "locality_id" => $this->getLocality() ? $this->getLocality()->getId() : null,
  345.       "day" => $this->getDay(),
  346.       "date" => $this->getDate()->format("d/m/Y H:i"),
  347.       "goals" => $this->getGoals(),
  348.       "rivalGoals" => $this->getRivalGoals(),
  349.       "image" => !empty($this->getImage()) ? $imagePath $this->getImage() : "",
  350.       "competition" => $this->getCompetition() ? $this->getCompetition()->getName() : null,
  351.       "competition_id" => $this->getCompetition() ? $this->getCompetition()->getId() : null,
  352.       "timeMatch" => $this->getTimeMatch(),
  353.       "category" => $this->getCategory(),
  354.       "shots_goal" => $this->getShotsGoal(),
  355.       "shots_opponent" => $this->getShotsOpponent(),
  356.       "corners_favor" => $this->getCornersFavor(),
  357.       "corners_against" => $this->getCornersAgainst(),
  358.       "penalties_favor" => $this->getPenaltiesFavor(),
  359.       "penalties_against" => $this->getPenaltiesAgainst(),
  360.       "fouls_favor" => $this->getFoulsFavor(),
  361.       "fouls_against" => $this->getFoulsAgainst(),
  362.       "rival_tactic" => $this->getRivalAlignment() != null $this->getRivalAlignment()->getTactic() : "",
  363.       'total_shots' => $this->getTotalShots() ?? 0,
  364.       'total_shots_against' => $this->getTotalShotsAgainst() ?? 0,
  365.       'yellow_cards' => $this->getYellowCards() ?? 0,
  366.       'yellow_cards_against' => $this->getYellowCardsAgainst() ?? 0,
  367.       'red_cards' => $this->getRedCards() ?? 0,
  368.       'opponentCurrentPositionLeague' => $this->getOpponentCurrentPositionLeague() ?? 0,
  369.       'pressureRival' => $this->getPressureRival() ? $this->getPressureRival()->__toArray() : null,
  370.       'pressureRivalId' => $this->getPressureRival() ? $this->getPressureRival()->getId() : null,
  371.       'red_cards_against' => $this->getRedCardsAgainst() ?? 0,
  372.       'alignment' => $this->getAlignment() ? $this->getAlignment()->__toArray() : null,
  373.       'currentPositionLeague' => $this->getCurrentPositionLeague(),
  374.       // Newly added fields with null validation
  375.       "offsides_favor" => $this->getOffsidesFavor() ?? 0,
  376.       "offsides_against" => $this->getOffsidesAgainst() ?? 0,
  377.       "goal_kicks_favor" => $this->getGoalKicksFavor() ?? 0,
  378.       "goal_kicks_against" => $this->getGoalKicksAgainst() ?? 0,
  379.       "entries_into_the_box_favor" => $this->getEntriesIntoTheBoxFavor() ?? 0,
  380.       "entries_into_the_box_against" => $this->getEntriesIntoTheBoxAgainst() ?? 0,
  381.     ];
  382.   }
  383.   /**
  384.    * @return Collection|Minutes[]
  385.    */
  386.   public function getMinutes(): Collection
  387.   {
  388.     return $this->minutes;
  389.   }
  390.   public function addMinute(Minutes $minute): self
  391.   {
  392.     if (!$this->minutes->contains($minute)) {
  393.       $this->minutes[] = $minute;
  394.       $minute->setGameId($this);
  395.     }
  396.     return $this;
  397.   }
  398.   public function removeMinute(Minutes $minute): self
  399.   {
  400.     if ($this->minutes->contains($minute)) {
  401.       $this->minutes->removeElement($minute);
  402.       // set the owning side to null (unless already changed)
  403.       if ($minute->getGameId() === $this) {
  404.         $minute->setGameId(null);
  405.       }
  406.     }
  407.     return $this;
  408.   }
  409.   public function getShotsGoal(): ?int
  410.   {
  411.     return $this->shots_goal;
  412.   }
  413.   public function setShotsGoal(int $shots_goal): self
  414.   {
  415.     $this->shots_goal $shots_goal;
  416.     return $this;
  417.   }
  418.   public function getShotsOpponent(): ?int
  419.   {
  420.     return $this->shots_opponent;
  421.   }
  422.   public function setShotsOpponent(int $shots_opponent): self
  423.   {
  424.     $this->shots_opponent $shots_opponent;
  425.     return $this;
  426.   }
  427.   public function getCornersFavor(): ?int
  428.   {
  429.     return $this->corners_favor;
  430.   }
  431.   public function setCornersFavor(int $corners_favor): self
  432.   {
  433.     $this->corners_favor $corners_favor;
  434.     return $this;
  435.   }
  436.   public function getCornersAgainst(): ?int
  437.   {
  438.     return $this->corners_against;
  439.   }
  440.   public function setCornersAgainst(int $corners_against): self
  441.   {
  442.     $this->corners_against $corners_against;
  443.     return $this;
  444.   }
  445.   public function getPenaltiesFavor(): ?int
  446.   {
  447.     return $this->penalties_favor;
  448.   }
  449.   public function setPenaltiesFavor(int $penalties_favor): self
  450.   {
  451.     $this->penalties_favor $penalties_favor;
  452.     return $this;
  453.   }
  454.   public function getPenaltiesAgainst(): ?int
  455.   {
  456.     return $this->penalties_against;
  457.   }
  458.   public function setPenaltiesAgainst(int $penalties_against): self
  459.   {
  460.     $this->penalties_against $penalties_against;
  461.     return $this;
  462.   }
  463.   public function getFoulsFavor(): ?int
  464.   {
  465.     return $this->fouls_favor;
  466.   }
  467.   public function setFoulsFavor(int $fouls_favor): self
  468.   {
  469.     $this->fouls_favor $fouls_favor;
  470.     return $this;
  471.   }
  472.   public function getFoulsAgainst(): ?int
  473.   {
  474.     return $this->fouls_against;
  475.   }
  476.   public function setFoulsAgainst(int $fouls_against): self
  477.   {
  478.     $this->fouls_against $fouls_against;
  479.     return $this;
  480.   }
  481.   public function getAlignment(): ?GameAlignment
  482.   {
  483.     return $this->alignment;
  484.   }
  485.   public function setAlignment(?GameAlignment $alignment): self
  486.   {
  487.     $this->alignment $alignment;
  488.     return $this;
  489.   }
  490.   public function getTimeMatch(): ?int
  491.   {
  492.     return $this->timeMatch;
  493.   }
  494.   public function setTimeMatch(?int $timeMatch): self
  495.   {
  496.     $this->timeMatch $timeMatch;
  497.     return $this;
  498.   }
  499.   public function getCategory(): ?int
  500.   {
  501.     return $this->category;
  502.   }
  503.   public function setCategory(int $category): self
  504.   {
  505.     $this->category $category;
  506.     return $this;
  507.   }
  508.   public function getRivalAlignment(): ?GameAlignment
  509.   {
  510.     return $this->rival_alignment;
  511.   }
  512.   public function setRivalAlignment(?GameAlignment $alignment): self
  513.   {
  514.     $this->rival_alignment $alignment;
  515.     return $this;
  516.   }
  517.   public function getTotalShots(): ?int
  518.   {
  519.     return $this->total_shots;
  520.   }
  521.   public function setTotalShots(?int $total_shots): self
  522.   {
  523.     $this->total_shots $total_shots;
  524.     return $this;
  525.   }
  526.   public function getTotalShotsAgainst(): ?int
  527.   {
  528.     return $this->total_shots_against;
  529.   }
  530.   public function setTotalShotsAgainst(?int $total_shots_against): self
  531.   {
  532.     $this->total_shots_against $total_shots_against;
  533.     return $this;
  534.   }
  535.   public function getYellowCards(): ?int
  536.   {
  537.     return $this->yellow_cards;
  538.   }
  539.   public function setYellowCards(?int $yellow_cards): self
  540.   {
  541.     $this->yellow_cards $yellow_cards;
  542.     return $this;
  543.   }
  544.   public function getYellowCardsAgainst(): ?int
  545.   {
  546.     return $this->yellow_cards_against;
  547.   }
  548.   public function setYellowCardsAgainst(?int $yellow_cards_against): self
  549.   {
  550.     $this->yellow_cards_against $yellow_cards_against;
  551.     return $this;
  552.   }
  553.   public function getRedCards(): ?int
  554.   {
  555.     return $this->red_cards;
  556.   }
  557.   public function setRedCards(?int $red_cards): self
  558.   {
  559.     $this->red_cards $red_cards;
  560.     return $this;
  561.   }
  562.   public function getRedCardsAgainst(): ?int
  563.   {
  564.     return $this->red_cards_against;
  565.   }
  566.   public function setRedCardsAgainst(?int $red_cards_against): self
  567.   {
  568.     $this->red_cards_against $red_cards_against;
  569.     return $this;
  570.   }
  571.   public function getCurrentPositionLeague(): ?int
  572.   {
  573.     return $this->currentPositionLeague;
  574.   }
  575.   public function setCurrentPositionLeague(?int $currentPositionLeague): self
  576.   {
  577.     $this->currentPositionLeague $currentPositionLeague;
  578.     return $this;
  579.   }
  580.   /**
  581.    * @return Collection|KilometersTraveled[]
  582.    */
  583.   public function getKilometersTraveleds(): Collection
  584.   {
  585.     return $this->kilometersTraveleds;
  586.   }
  587.   public function addKilometersTraveled(KilometersTraveled $kilometersTraveled): self
  588.   {
  589.     if (!$this->kilometersTraveleds->contains($kilometersTraveled)) {
  590.       $this->kilometersTraveleds[] = $kilometersTraveled;
  591.       $kilometersTraveled->setGame($this);
  592.     }
  593.     return $this;
  594.   }
  595.   public function removeKilometersTraveled(KilometersTraveled $kilometersTraveled): self
  596.   {
  597.     if ($this->kilometersTraveleds->contains($kilometersTraveled)) {
  598.       $this->kilometersTraveleds->removeElement($kilometersTraveled);
  599.       // set the owning side to null (unless already changed)
  600.       if ($kilometersTraveled->getGame() === $this) {
  601.         $kilometersTraveled->setGame(null);
  602.       }
  603.     }
  604.     return $this;
  605.   }
  606.   /**
  607.    * @return Collection|ShotsOnGoal[]
  608.    */
  609.   public function getShotsOnGoals(): Collection
  610.   {
  611.     return $this->shotsOnGoals;
  612.   }
  613.   public function addShotsOnGoal(ShotsOnGoal $shotsOnGoal): self
  614.   {
  615.     if (!$this->shotsOnGoals->contains($shotsOnGoal)) {
  616.       $this->shotsOnGoals[] = $shotsOnGoal;
  617.       $shotsOnGoal->setGame($this);
  618.     }
  619.     return $this;
  620.   }
  621.   public function removeShotsOnGoal(ShotsOnGoal $shotsOnGoal): self
  622.   {
  623.     if ($this->shotsOnGoals->contains($shotsOnGoal)) {
  624.       $this->shotsOnGoals->removeElement($shotsOnGoal);
  625.       // set the owning side to null (unless already changed)
  626.       if ($shotsOnGoal->getGame() === $this) {
  627.         $shotsOnGoal->setGame(null);
  628.       }
  629.     }
  630.     return $this;
  631.   }
  632.   /**
  633.    * @return Collection|GamePlayerStatistics[]
  634.    */
  635.   public function getSeasonplayer(): Collection
  636.   {
  637.     return $this->seasonplayer;
  638.   }
  639.   public function addSeasonplayer(GamePlayerStatistics $seasonplayer): self
  640.   {
  641.     if (!$this->seasonplayer->contains($seasonplayer)) {
  642.       $this->seasonplayer[] = $seasonplayer;
  643.       $seasonplayer->setGame($this);
  644.     }
  645.     return $this;
  646.   }
  647.   public function removeSeasonplayer(GamePlayerStatistics $seasonplayer): self
  648.   {
  649.     if ($this->seasonplayer->contains($seasonplayer)) {
  650.       $this->seasonplayer->removeElement($seasonplayer);
  651.       // set the owning side to null (unless already changed)
  652.       if ($seasonplayer->getGame() === $this) {
  653.         $seasonplayer->setGame(null);
  654.       }
  655.     }
  656.     return $this;
  657.   }
  658.   /**
  659.    * @return Collection|GamePlayerStatistics[]
  660.    */
  661.   public function getGamePlayerStatistics(): Collection
  662.   {
  663.     return $this->gamePlayerStatistics;
  664.   }
  665.   public function addGamePlayerStatistic(GamePlayerStatistics $gamePlayerStatistic): self
  666.   {
  667.     if (!$this->gamePlayerStatistics->contains($gamePlayerStatistic)) {
  668.       $this->gamePlayerStatistics[] = $gamePlayerStatistic;
  669.       $gamePlayerStatistic->setGame($this);
  670.     }
  671.     return $this;
  672.   }
  673.   public function removeGamePlayerStatistic(GamePlayerStatistics $gamePlayerStatistic): self
  674.   {
  675.     if ($this->gamePlayerStatistics->contains($gamePlayerStatistic)) {
  676.       $this->gamePlayerStatistics->removeElement($gamePlayerStatistic);
  677.       // set the owning side to null (unless already changed)
  678.       if ($gamePlayerStatistic->getGame() === $this) {
  679.         $gamePlayerStatistic->setGame(null);
  680.       }
  681.     }
  682.     return $this;
  683.   }
  684.   public function getCompetition(): ?Competition
  685.   {
  686.     return $this->competition;
  687.   }
  688.   public function setCompetition(?Competition $competition): self
  689.   {
  690.     $this->competition $competition;
  691.     return $this;
  692.   }
  693.   public function getOpponentCurrentPositionLeague(): ?int
  694.   {
  695.     return $this->opponentCurrentPositionLeague;
  696.   }
  697.   public function setOpponentCurrentPositionLeague(?int $opponentCurrentPositionLeague): self
  698.   {
  699.     $this->opponentCurrentPositionLeague $opponentCurrentPositionLeague;
  700.     return $this;
  701.   }
  702.   public function getPressureRival(): ?Difficulty
  703.   {
  704.     return $this->pressureRival;
  705.   }
  706.   public function setPressureRival(?Difficulty $pressureRival): self
  707.   {
  708.     $this->pressureRival $pressureRival;
  709.     return $this;
  710.   }
  711.   public function getDeletedAt(): ?\DateTimeInterface
  712.   {
  713.     return $this->deletedAt;
  714.   }
  715.   public function setDeletedAt(?\DateTimeInterface $deletedAt): self
  716.   {
  717.     $this->deletedAt $deletedAt;
  718.     return $this;
  719.   }
  720.   public function getOffsidesFavor(): ?int
  721.   {
  722.       return $this->offsidesFavor;
  723.   }
  724.   public function setOffsidesFavor(?int $offsidesFavor): self
  725.   {
  726.       $this->offsidesFavor $offsidesFavor;
  727.       return $this;
  728.   }
  729.   public function getOffsidesAgainst(): ?int
  730.   {
  731.       return $this->offsidesAgainst;
  732.   }
  733.   public function setOffsidesAgainst(?int $offsidesAgainst): self
  734.   {
  735.       $this->offsidesAgainst $offsidesAgainst;
  736.       return $this;
  737.   }
  738.   public function getGoalKicksFavor(): ?int
  739.   {
  740.       return $this->goalKicksFavor;
  741.   }
  742.   public function setGoalKicksFavor(?int $goalKicksFavor): self
  743.   {
  744.       $this->goalKicksFavor $goalKicksFavor;
  745.       return $this;
  746.   }
  747.   public function getGoalKicksAgainst(): ?int
  748.   {
  749.       return $this->goalKicksAgainst;
  750.   }
  751.   public function setGoalKicksAgainst(?int $goalKicksAgainst): self
  752.   {
  753.       $this->goalKicksAgainst $goalKicksAgainst;
  754.       return $this;
  755.   }
  756.   public function getEntriesIntoTheBoxFavor(): ?int
  757.   {
  758.       return $this->entriesIntoTheBoxFavor;
  759.   }
  760.   public function setEntriesIntoTheBoxFavor(?int $entriesIntoTheBoxFavor): self
  761.   {
  762.       $this->entriesIntoTheBoxFavor $entriesIntoTheBoxFavor;
  763.       return $this;
  764.   }
  765.   public function getEntriesIntoTheBoxAgainst(): ?int
  766.   {
  767.       return $this->entriesIntoTheBoxAgainst;
  768.   }
  769.   public function setEntriesIntoTheBoxAgainst(?int $entriesIntoTheBoxAgainst): self
  770.   {
  771.       $this->entriesIntoTheBoxAgainst $entriesIntoTheBoxAgainst;
  772.       return $this;
  773.   }
  774. }