2022-10-13 20:23:22 +02:00
|
|
|
<?php
|
|
|
|
|
2023-02-03 20:41:59 +01:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2022-10-13 20:23:22 +02:00
|
|
|
namespace Engelsystem\Test\Unit\Controllers\Stub;
|
|
|
|
|
|
|
|
use Engelsystem\Controllers\ChecksArrivalsAndDepartures;
|
|
|
|
|
|
|
|
class ChecksArrivalsAndDeparturesImplementation
|
|
|
|
{
|
|
|
|
use ChecksArrivalsAndDepartures;
|
|
|
|
|
2022-10-15 23:08:45 +02:00
|
|
|
public function checkArrival(?string $arrival, ?string $departure): bool
|
2022-10-13 20:23:22 +02:00
|
|
|
{
|
|
|
|
return $this->isArrivalDateValid($arrival, $departure);
|
|
|
|
}
|
|
|
|
|
2022-10-15 23:08:45 +02:00
|
|
|
public function checkDeparture(?string $arrival, ?string $departure): bool
|
2022-10-13 20:23:22 +02:00
|
|
|
{
|
|
|
|
return $this->isDepartureDateValid($arrival, $departure);
|
|
|
|
}
|
|
|
|
}
|