Private
Public Access
1
0
Files
MineSeeker/src/Entity/Step.php

109 lines
2.2 KiB
PHP
Raw Normal View History

<?php declare(strict_types=1);
/*
* This file is part of the SplendidBear Websites' projects.
*
* Copyright (c) 2026 @ www.splendidbear.org
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Entity;
use App\Repository\StepRepository;
use DateTime;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\ManyToOne;
/**
* Class Step
*
* @package App\Entity
* @author Lang <https://www.splendidbear.org>
* @category Class
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html GNU Lesser General Public License
* @link www.splendidbear.org
* @since 2026. 04. 09.
*/
#[Entity(repositoryClass: StepRepository::class)]
class Step
{
#[Id, GeneratedValue, Column]
private ?int $id = null;
#[Column(length: 3)]
private ?int $row = null;
#[Column(length: 3)]
private ?int $col = null;
#[Column(nullable: true)]
private ?bool $wBomb = null;
#[ManyToOne(inversedBy: 'step')]
private ?PlayedGame $playedGame = null;
#[Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?DateTime $created = null;
public function getId(): ?int
{
return $this->id;
}
public function getRow(): ?int
{
return $this->row;
}
public function setRow(?int $row): void
{
$this->row = $row;
}
public function getCol(): ?int
{
return $this->col;
}
public function setCol(?int $col): void
{
$this->col = $col;
}
public function getWBomb(): ?bool
{
return $this->wBomb;
}
public function setWBomb(?bool $wBomb): void
{
$this->wBomb = $wBomb;
}
public function getPlayedGame(): ?PlayedGame
{
return $this->playedGame;
}
public function setPlayedGame(?PlayedGame $playedGame): void
{
$this->playedGame = $playedGame;
}
public function getCreated(): ?DateTime
{
return $this->created;
}
public function setCreated(?DateTime $created): void
{
$this->created = $created;
}
}