Skip to content

Instantly share code, notes, and snippets.

@kamil161g
Created May 16, 2018 14:00
Show Gist options
  • Save kamil161g/40f49da296572450fcc3c670285aa63d to your computer and use it in GitHub Desktop.
Save kamil161g/40f49da296572450fcc3c670285aa63d to your computer and use it in GitHub Desktop.
<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\InformationTeamRepository")
*/
class InformationTeam
{
const SEASONNOW = "2017/2018";
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $season;
/**
* @ORM\Column(type="integer")
*/
private $matchs;
/**
* @ORM\Column(type="integer")
*/
private $goalsScored;
/**
* @ORM\Column(type="integer")
*/
private $goalsLost;
/**
* @ORM\Column(type="integer")
*/
private $wins;
/**
* @ORM\Column(type="integer")
*/
private $lost;
/**
* @ORM\Column(type="integer")
*/
private $draw;
/**
* @ORM\Column(type="integer")
*/
private $points;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Team", inversedBy="description")
*/
private $club_id;
public function __construct()
{
$this->club_id = new ArrayCollection();
}
public function getId()
{
return $this->id;
}
public function getSeason(): ?string
{
return $this->season;
}
public function setSeason(string $season): self
{
$this->season = $season;
return $this;
}
public function getMatchs(): ?int
{
return $this->matchs;
}
public function setMatchs(int $matchs): self
{
$this->matchs = $matchs;
return $this;
}
public function getGoalsScored(): ?int
{
return $this->goalsScored;
}
public function setGoalsScored(int $goalsScored): self
{
$this->goalsScored = $goalsScored;
return $this;
}
public function getGoalsLost(): ?int
{
return $this->goalsLost;
}
public function setGoalsLost(int $goalsLost): self
{
$this->goalsLost = $goalsLost;
return $this;
}
/**
* @return mixed
*/
public function getClubId()
{
return $this->club_id;
}
/**
* @param mixed $club_id
*/
public function setClubId($club_id)
{
$this->club_id = $club_id;
}
/**
* @return mixed
*/
public function getPoints()
{
return $this->points;
}
/**
* @param mixed $points
*/
public function setPoints($points)
{
$this->points = $points;
}
/**
* @return mixed
*/
public function getWins()
{
return $this->wins;
}
/**
* @param mixed $wins
*/
public function setWins($wins)
{
$this->wins = $wins;
}
/**
* @return mixed
*/
public function getLost()
{
return $this->lost;
}
/**
* @param mixed $lost
*/
public function setLost($lost)
{
$this->lost = $lost;
}
/**
* @return mixed
*/
public function getDraw()
{
return $this->draw;
}
/**
* @param mixed $draw
*/
public function setDraw($draw)
{
$this->draw = $draw;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment