2019-10-27 13:35:33 +01:00
|
|
|
<?php
|
2019-10-27 18:51:03 +01:00
|
|
|
/**
|
|
|
|
|
* This file is part of the SplendidBear Websites' projects.
|
|
|
|
|
*
|
|
|
|
|
* Copyright (c) 2019 @ www.splendidbear.org
|
|
|
|
|
*
|
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
|
*/
|
2019-10-27 13:35:33 +01:00
|
|
|
|
|
|
|
|
namespace App\Entity;
|
|
|
|
|
|
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
|
|
|
|
|
|
/**
|
2019-10-27 18:51:03 +01:00
|
|
|
* Class Step
|
|
|
|
|
*
|
|
|
|
|
* @package App\Entity
|
|
|
|
|
* @author system7 <https://www.splendidbear.org>
|
|
|
|
|
*
|
2019-10-27 13:35:33 +01:00
|
|
|
* @ORM\Entity(repositoryClass="App\Repository\StepRepository")
|
|
|
|
|
*/
|
|
|
|
|
class Step
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* @ORM\Id()
|
|
|
|
|
* @ORM\GeneratedValue()
|
|
|
|
|
* @ORM\Column(type="integer")
|
|
|
|
|
*/
|
|
|
|
|
private $id;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @var int|null
|
|
|
|
|
*
|
|
|
|
|
* @ORM\Column(name="row", length=3, type="integer", nullable=false)
|
|
|
|
|
*/
|
|
|
|
|
private $row;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @var int|null
|
|
|
|
|
*
|
|
|
|
|
* @ORM\Column(name="col", length=3, type="integer", nullable=false)
|
|
|
|
|
*/
|
|
|
|
|
private $col;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @var boolean|null
|
|
|
|
|
*
|
|
|
|
|
* @ORM\Column(name="wbomb", type="boolean", nullable=true)
|
|
|
|
|
*/
|
|
|
|
|
private $wBomb;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @var PlayedGame|null
|
|
|
|
|
*
|
|
|
|
|
* @ORM\ManyToOne(targetEntity="App\Entity\PlayedGame", inversedBy="step")
|
|
|
|
|
*/
|
|
|
|
|
private $playedGame;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @var \DateTime|null
|
|
|
|
|
*
|
|
|
|
|
* @ORM\Column(name="created", type="datetime", nullable=true)
|
|
|
|
|
*/
|
|
|
|
|
private $created;
|
|
|
|
|
|
|
|
|
|
public function getId(): ?int
|
|
|
|
|
{
|
|
|
|
|
return $this->id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return int|null
|
|
|
|
|
*/
|
|
|
|
|
public function getRow(): ?int
|
|
|
|
|
{
|
|
|
|
|
return $this->row;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param int|null $row
|
|
|
|
|
*/
|
|
|
|
|
public function setRow(?int $row): void
|
|
|
|
|
{
|
|
|
|
|
$this->row = $row;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return int|null
|
|
|
|
|
*/
|
|
|
|
|
public function getCol(): ?int
|
|
|
|
|
{
|
|
|
|
|
return $this->col;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param int|null $col
|
|
|
|
|
*/
|
|
|
|
|
public function setCol(?int $col): void
|
|
|
|
|
{
|
|
|
|
|
$this->col = $col;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return bool|null
|
|
|
|
|
*/
|
|
|
|
|
public function getWBomb(): ?bool
|
|
|
|
|
{
|
|
|
|
|
return $this->wBomb;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param bool|null $wBomb
|
|
|
|
|
*/
|
|
|
|
|
public function setWBomb(?bool $wBomb): void
|
|
|
|
|
{
|
|
|
|
|
$this->wBomb = $wBomb;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return PlayedGame|null
|
|
|
|
|
*/
|
|
|
|
|
public function getPlayedGame(): ?PlayedGame
|
|
|
|
|
{
|
|
|
|
|
return $this->playedGame;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param PlayedGame|null $playedGame
|
|
|
|
|
*/
|
|
|
|
|
public function setPlayedGame(?PlayedGame $playedGame): void
|
|
|
|
|
{
|
|
|
|
|
$this->playedGame = $playedGame;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return \DateTime|null
|
|
|
|
|
*/
|
|
|
|
|
public function getCreated(): ?\DateTime
|
|
|
|
|
{
|
|
|
|
|
return $this->created;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param \DateTime|null $created
|
|
|
|
|
*/
|
|
|
|
|
public function setCreated(?\DateTime $created): void
|
|
|
|
|
{
|
|
|
|
|
$this->created = $created;
|
|
|
|
|
}
|
|
|
|
|
}
|