mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-07 13:14:20 +01:00
- Adjusted migrations to align with refactored ORM annotations. - Added new PHPStan and PHP-CS-Fixer configurations, including stricter rules. - Introduced `tests/object-manager.php` to improve test environment setup.
58 lines
1.3 KiB
PHP
58 lines
1.3 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tvdt\Entity;
|
|
|
|
use Doctrine\DBAL\Types\Types;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
|
|
use Symfony\Bridge\Doctrine\Types\UuidType;
|
|
use Symfony\Component\Uid\Uuid;
|
|
use Tvdt\Repository\SeasonSettingsRepository;
|
|
|
|
#[ORM\Entity(repositoryClass: SeasonSettingsRepository::class)]
|
|
class SeasonSettings
|
|
{
|
|
#[ORM\Column(type: UuidType::NAME)]
|
|
#[ORM\CustomIdGenerator(class: UuidGenerator::class)]
|
|
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
|
|
#[ORM\Id]
|
|
private Uuid $id;
|
|
|
|
#[ORM\Column(type: Types::BOOLEAN, options: ['default' => false])]
|
|
private bool $showNumbers = false;
|
|
|
|
#[ORM\Column(type: Types::BOOLEAN, options: ['default' => false])]
|
|
private bool $confirmAnswers = false;
|
|
|
|
public function getId(): Uuid
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function isShowNumbers(): bool
|
|
{
|
|
return $this->showNumbers;
|
|
}
|
|
|
|
public function setShowNumbers(bool $showNumbers): self
|
|
{
|
|
$this->showNumbers = $showNumbers;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function isConfirmAnswers(): bool
|
|
{
|
|
return $this->confirmAnswers;
|
|
}
|
|
|
|
public function setConfirmAnswers(bool $confirmAnswers): self
|
|
{
|
|
$this->confirmAnswers = $confirmAnswers;
|
|
|
|
return $this;
|
|
}
|
|
}
|