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