diff --git a/src/Domain/Account/Aggregate/PointLog/PointLog.php b/src/Domain/Account/Aggregate/PointLog/PointLog.php index 5740b92..62cd01a 100644 --- a/src/Domain/Account/Aggregate/PointLog/PointLog.php +++ b/src/Domain/Account/Aggregate/PointLog/PointLog.php @@ -25,11 +25,17 @@ final class PointLog extends AggregateRoot private readonly string $source, private readonly string $operator, private readonly string $description, + private readonly string $patientName, private readonly Carbon $date, private readonly bool $invoiceable, private readonly ?InvoiceRecord $invoiceRecord, ) {} + public function getPatientName(): string + { + return $this->patientName; + } + public function getDescription(): string { return $this->description; diff --git a/src/Infrastructure/Repository/PointLogRepo.php b/src/Infrastructure/Repository/PointLogRepo.php index ac54b7a..1f70acc 100644 --- a/src/Infrastructure/Repository/PointLogRepo.php +++ b/src/Infrastructure/Repository/PointLogRepo.php @@ -44,6 +44,7 @@ final class PointLogRepo extends AbstractRepo implements PointLogRepoInterface source: $item['source'], operator: $item['operator'], description: $item['description'], + patientName: $item['patient_name'], date: new Carbon($item['date']), invoiceable: $item['invoiceable'], invoiceRecord: isset($item['invoice_record']) @@ -74,6 +75,7 @@ final class PointLogRepo extends AbstractRepo implements PointLogRepoInterface source: $result['source'], operator: $result['operator'], description: $result['description'], + patientName: $result['patient_name'], date: new Carbon($result['date']), invoiceable: $result['invoiceable'], invoiceRecord: isset($result['invoice_record'])