mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-07 05:04:20 +01:00
Refactor entities and codebase for native property usage
- Replaced getters/setters with direct property access across entities and repositories. - Added and configured `martin-georgiev/postgresql-for-doctrine` for PostgreSQL enhancements. - Updated Doctrine configuration with types, mappings, and JSONB query functions. - Removed unused `EliminationService` and related YAML configurations.
This commit is contained in:
19
src/Dto/Result.php
Normal file
19
src/Dto/Result.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tvdt\Dto;
|
||||
|
||||
use Symfony\Component\Uid\Uuid;
|
||||
|
||||
final readonly class Result
|
||||
{
|
||||
public function __construct(
|
||||
public Uuid $id,
|
||||
public string $name,
|
||||
public int $correct,
|
||||
public float $corrections,
|
||||
public \DateInterval $time,
|
||||
public float $score,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user