feat: driver license check for teamers
closes #869bup9vf
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
||||
class DriverLicenseDeclarationDto
|
||||
{
|
||||
#[Assert\NotNull(message: 'Bitte gib an, ob du einen Führerschein hast.')]
|
||||
private ?bool $hasDriverLicense = null;
|
||||
|
||||
public function __construct(?bool $hasDriverLicense = null)
|
||||
{
|
||||
$this->hasDriverLicense = $hasDriverLicense;
|
||||
}
|
||||
|
||||
public function hasDriverLicense(): ?bool
|
||||
{
|
||||
return $this->hasDriverLicense;
|
||||
}
|
||||
|
||||
public function setHasDriverLicense(?bool $hasDriverLicense): static
|
||||
{
|
||||
$this->hasDriverLicense = $hasDriverLicense;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user