Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
DateTime | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
2 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
2 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Engelsystem\Http\Validation\Rules; |
6 | |
7 | use Respect\Validation\Rules\Date; |
8 | |
9 | class DateTime extends Date |
10 | { |
11 | public function __construct(?string $format = null) |
12 | { |
13 | if (is_null($format)) { |
14 | $format = 'Y-m-d\TH:i'; |
15 | } |
16 | |
17 | parent::__construct($format); |
18 | } |
19 | } |