Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
23 | class TimestampedDataPersister |
||
24 | { |
||
25 | use ClassMetadataTrait; |
||
26 | |||
27 | private TimestampedAnnotationReader $annotationReader; |
||
28 | |||
29 | 7 | public function __construct(ManagerRegistry $registry, TimestampedAnnotationReader $annotationReader) |
|
30 | { |
||
31 | 7 | $this->initRegistry($registry); |
|
32 | 7 | $this->annotationReader = $annotationReader; |
|
33 | 7 | } |
|
34 | |||
35 | 2 | public function persistTimestampedFields(object $timestamped, bool $isNew): void |
|
43 | 2 | } |
|
44 | } |
||
45 |