/src/InsaLan/TournamentBundle/Entity/Round.php
PHP | 146 lines | 55 code | 21 blank | 70 comment | 0 complexity | 3f538fd96c6932b45bed45c9888f3894 MD5 | raw file
- <?php
- namespace InsaLan\TournamentBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Symfony\Component\Validator\Constraints as Assert;
- use Gedmo\Mapping\Annotation as Gedmo;
- use Gedmo\Timestampable\Traits\TimestampableEntity;
- /**
- * @ORM\Entity
- */
- class Round
- {
- use TimestampableEntity;
- /**
- * @ORM\Id
- * @ORM\Column(type="integer")
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- protected $id;
- /**
- * @ORM\ManyToOne(targetEntity="Match", inversedBy="rounds")
- * @ORM\JoinColumn(onDelete="cascade")
- */
- protected $match;
- /**
- * @ORM\Column(type="integer")
- */
- protected $score1;
- /**
- * @ORM\Column(type="integer")
- */
- protected $score2;
- /**
- * @ORM\Column(type="string", length=255, nullable=true)
- */
- protected $replay;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set score1
- *
- * @param integer $score1
- * @return Round
- */
- public function setScore1($score1)
- {
- $this->score1 = $score1;
- return $this;
- }
- /**
- * Get score1
- *
- * @return integer
- */
- public function getScore1()
- {
- return $this->score1;
- }
- /**
- * Set score2
- *
- * @param integer $score2
- * @return Round
- */
- public function setScore2($score2)
- {
- $this->score2 = $score2;
- return $this;
- }
- /**
- * Get score2
- *
- * @return integer
- */
- public function getScore2()
- {
- return $this->score2;
- }
- /**
- * Set match
- *
- * @param \InsaLan\TournamentBundle\Entity\Match $match
- * @return Round
- */
- public function setMatch(\InsaLan\TournamentBundle\Entity\Match $match = null)
- {
- $this->match = $match;
- return $this;
- }
- /**
- * Get match
- *
- * @return \InsaLan\TournamentBundle\Entity\Match
- */
- public function getMatch()
- {
- return $this->match;
- }
- /**
- * Set replay
- *
- * @param string $replay
- * @return Round
- */
- public function setReplay($replay)
- {
- $this->replay = $replay;
- return $this;
- }
- /**
- * Get replay
- *
- * @return string
- */
- public function getReplay()
- {
- return $this->replay;
- }
- }