for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Stu\Orm\Entity;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\Table;
use Stu\Orm\Attribute\TruncateOnGameReset;
use Stu\Orm\Repository\OpenedAdventDoorRepository;
#[Table(name: 'stu_opened_advent_door')]
#[Entity(repositoryClass: OpenedAdventDoorRepository::class)]
#[TruncateOnGameReset]
class OpenedAdventDoor
{
#[Id]
#[Column(type: 'integer')]
#[GeneratedValue(strategy: 'IDENTITY')]
private int $id;
private int $user_id;
private int $day;
private int $month;
private int $year;
private int $time;
public function getId(): int
return $this->id;
}
public function setUserId(int $userId): OpenedAdventDoor
$this->user_id = $userId;
return $this;
public function setDay(int $day): OpenedAdventDoor
$this->day = $day;
public function setMonth(int $month): OpenedAdventDoor
$this->month = $month;
public function setYear(int $year): OpenedAdventDoor
$this->year = $year;
public function setTime(int $time): OpenedAdventDoor
$this->time = $time;