Skip to content

Commit

Permalink
Updating the class to reflect the changes done in api
Browse files Browse the repository at this point in the history
  • Loading branch information
SeemaMenon committed Oct 10, 2024
1 parent 20953c3 commit c6508fe
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ public function __invoke(array $lpa)
{
$lpaObject = $this->hydrateObject($lpa);

Check warning on line 34 in service-front/app/src/Common/src/Service/Lpa/Factory/LpaDataFormatter.php

View check run for this annotation

Codecov / codecov/patch

service-front/app/src/Common/src/Service/Lpa/Factory/LpaDataFormatter.php#L34

Added line #L34 was not covered by tests

return $this->mapper->serializeObject(
$lpaObject
);
return $lpaObject;

Check warning on line 36 in service-front/app/src/Common/src/Service/Lpa/Factory/LpaDataFormatter.php

View check run for this annotation

Codecov / codecov/patch

service-front/app/src/Common/src/Service/Lpa/Factory/LpaDataFormatter.php#L36

Added line #L36 was not covered by tests
}

/**
Expand All @@ -57,4 +55,9 @@ private function getHydrationClass(array $lpa): string
? LpaStore::class
: SiriusLpa::class;

Check warning on line 56 in service-front/app/src/Common/src/Service/Lpa/Factory/LpaDataFormatter.php

View check run for this annotation

Codecov / codecov/patch

service-front/app/src/Common/src/Service/Lpa/Factory/LpaDataFormatter.php#L54-L56

Added lines #L54 - L56 were not covered by tests
}

public function serializeObject(object $lpa): mixed

Check warning on line 59 in service-front/app/src/Common/src/Service/Lpa/Factory/LpaDataFormatter.php

View check run for this annotation

Codecov / codecov/patch

service-front/app/src/Common/src/Service/Lpa/Factory/LpaDataFormatter.php#L59

Added line #L59 was not covered by tests
{
return $this->mapper->serializeObject($lpa);

Check warning on line 61 in service-front/app/src/Common/src/Service/Lpa/Factory/LpaDataFormatter.php

View check run for this annotation

Codecov / codecov/patch

service-front/app/src/Common/src/Service/Lpa/Factory/LpaDataFormatter.php#L61

Added line #L61 was not covered by tests
}
}

0 comments on commit c6508fe

Please sign in to comment.