feat: disable body dimensions validation for selection id 1475
closes #869dne7qt
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Validator;
|
||||
|
||||
use App\Form\Model\ParticipantEditDto;
|
||||
|
||||
final class SelectionBasedBodyDimensionExemption
|
||||
{
|
||||
private const SELECTION_ID = 1475;
|
||||
|
||||
public function isBodyDimensionValidationExempt(mixed $validationRoot): bool
|
||||
{
|
||||
if (false === $validationRoot instanceof ParticipantEditDto) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $validationRoot->bookingContext->travel->hasSelectionId(self::SELECTION_ID);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user