Skip to content

Commit

Permalink
added denormalize param hint
Browse files Browse the repository at this point in the history
  • Loading branch information
mmadariaga committed Feb 8, 2023
1 parent 9c2296e commit b46c2cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Application/DataTransferObjectInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ interface DataTransferObjectInterface
public function setId(int|string $id);
public function getId();
public function normalize(string $context, string $role = ''): array;

/**
* @param array<array-key, mixed> $data
*/
public function denormalize(array $data, string $context, string $role = ''): void;
/**
* @return array<array-key, array<array-key, array<int, string>|string>|string>
Expand Down

0 comments on commit b46c2cb

Please sign in to comment.