Skip to content

Commit

Permalink
remove line number from response for send otp and send otp with params
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadmrt committed Nov 27, 2024
1 parent 88dd8d9 commit 84a3978
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/DataTransferObjects/Response/OtpMessageResponseDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
* @param array<OtpItemDTO> $items
*/
public function __construct(
private string $lineNumber,
private string $messageBody,
private array $items,
private string $totalCost
)
Expand All @@ -19,23 +17,11 @@ public function __construct(
public static function fromResponse(array $response): self
{
return new self(
lineNumber: $response['lineNumber'],
messageBody: $response['messageBody'],
items: array_map(fn(array $item) => OtpItemDTO::fromResponse($item),$response['items']),
totalCost: $response['totalCost']
);
}

public function getLineNumber(): string
{
return $this->lineNumber;
}

public function getMessageBody(): string
{
return $this->messageBody;
}

public function getItems(): array
{
return $this->items;
Expand Down

0 comments on commit 84a3978

Please sign in to comment.