Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| ClockAdapter | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| getNow | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Shared\Infrastructure\Adapter; |
| 4 | |
| 5 | use App\Shared\Domain\Port\Driven\Clock; |
| 6 | use Symfony\Component\Clock\ClockAwareTrait; |
| 7 | |
| 8 | /** |
| 9 | * @author Wilhelm Zwertvaegher |
| 10 | */ |
| 11 | class ClockAdapter implements Clock |
| 12 | { |
| 13 | |
| 14 | use ClockAwareTrait; |
| 15 | |
| 16 | public function getNow(): \DateTimeImmutable |
| 17 | { |
| 18 | return $this->now(); |
| 19 | } |
| 20 | } |