Render for generic doc

This commit is contained in:
2023-05-24 21:57:20 +02:00
parent 8dbe2d6ec2
commit e550817ded
14 changed files with 299 additions and 66 deletions

View File

@@ -23,7 +23,7 @@ class Manager
public function __construct(
/**
* @var iterable<ProviderForAccompanyingPeriodInterface>
* @var iterable<GenericDocForAccompanyingPeriodProviderInterface>
*/
private readonly iterable $providersForAccompanyingPeriod,
private readonly Connection $connection,
@@ -81,7 +81,8 @@ class Manager
yield new GenericDocDTO(
$row['key'],
json_decode($row['identifiers'], true, JSON_THROW_ON_ERROR),
new \DateTimeImmutable($row['doc_date'])
new \DateTimeImmutable($row['doc_date']),
$accompanyingPeriod,
);
}
}