chg: pkg: make a massive refactor to the backend and remove all unnecessary deps - and make small refactors for the frontend too #4
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of the SplendidBear Websites' projects.
|
||||
*
|
||||
* Copyright (c) 2019 @ www.splendidbear.org
|
||||
* 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.
|
||||
@@ -10,141 +10,98 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
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 system7 <https://www.splendidbear.org>
|
||||
*
|
||||
* @ORM\Entity(repositoryClass="App\Repository\StepRepository")
|
||||
* @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
|
||||
{
|
||||
/**
|
||||
* @ORM\Id()
|
||||
* @ORM\GeneratedValue()
|
||||
* @ORM\Column(type="integer")
|
||||
*/
|
||||
private $id;
|
||||
#[Id, GeneratedValue, Column]
|
||||
private ?int $id = null;
|
||||
|
||||
/**
|
||||
* @var int|null
|
||||
*
|
||||
* @ORM\Column(name="row", length=3, type="integer", nullable=false)
|
||||
*/
|
||||
private $row;
|
||||
#[Column(length: 3)]
|
||||
private ?int $row = null;
|
||||
|
||||
/**
|
||||
* @var int|null
|
||||
*
|
||||
* @ORM\Column(name="col", length=3, type="integer", nullable=false)
|
||||
*/
|
||||
private $col;
|
||||
#[Column(length: 3)]
|
||||
private ?int $col = null;
|
||||
|
||||
/**
|
||||
* @var boolean|null
|
||||
*
|
||||
* @ORM\Column(name="wbomb", type="boolean", nullable=true)
|
||||
*/
|
||||
private $wBomb;
|
||||
#[Column(nullable: true)]
|
||||
private ?bool $wBomb = null;
|
||||
|
||||
/**
|
||||
* @var PlayedGame|null
|
||||
*
|
||||
* @ORM\ManyToOne(targetEntity="App\Entity\PlayedGame", inversedBy="step")
|
||||
*/
|
||||
private $playedGame;
|
||||
#[ManyToOne(inversedBy: 'step')]
|
||||
private ?PlayedGame $playedGame = null;
|
||||
|
||||
#[Column(type: Types::DATETIME_MUTABLE, nullable: true)]
|
||||
private ?DateTime $created = null;
|
||||
|
||||
/**
|
||||
* @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
|
||||
public function getCreated(): ?DateTime
|
||||
{
|
||||
return $this->created;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DateTime|null $created
|
||||
*/
|
||||
public function setCreated(?\DateTime $created): void
|
||||
public function setCreated(?DateTime $created): void
|
||||
{
|
||||
$this->created = $created;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user