Skip to content

Commit

Permalink
Rename methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mattamon committed May 21, 2024
1 parent 2466a77 commit 324383b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Version/Controller/CollectionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function __construct(
#[UnprocessableContentResponse]
public function getVersions(#[MapQueryString] VersionParameters $parameters): JsonResponse
{
$result = $this->hydratorService->getHydratedVersions(
$result = $this->hydratorService->getVersions(
$parameters,
$this->securityService->getCurrentUser()
);
Expand Down
2 changes: 1 addition & 1 deletion src/Version/Controller/GetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function __construct(
public function getVersions(int $id): JsonResponse
{
return $this->jsonResponse(
$this->versionDetailService->getHydratedVersionData(
$this->versionDetailService->getVersionData(
$id,
$this->securityService->getCurrentUser()
)
Expand Down
2 changes: 1 addition & 1 deletion src/Version/Service/VersionDetailService.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct(
) {
}

public function getHydratedVersionData(
public function getVersionData(
int $id,
UserInterface $user
): AssetVersion|ImageVersion|DataObjectVersion|DocumentVersion {
Expand Down
2 changes: 1 addition & 1 deletion src/Version/Service/VersionDetailServiceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*/
interface VersionDetailServiceInterface
{
public function getHydratedVersionData(
public function getVersionData(
int $id,
UserInterface $user
): AssetVersion|ImageVersion|DataObjectVersion|DocumentVersion;
Expand Down
2 changes: 1 addition & 1 deletion src/Version/Service/VersionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function __construct(
) {
}

public function getHydratedVersions(
public function getVersions(
VersionParameters $parameters,
UserInterface $user
): ListingResult {
Expand Down
2 changes: 1 addition & 1 deletion src/Version/Service/VersionServiceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/
interface VersionServiceInterface
{
public function getHydratedVersions(
public function getVersions(
VersionParameters $parameters,
UserInterface $user
): ListingResult;
Expand Down

0 comments on commit 324383b

Please sign in to comment.