Skip to content

Commit

Permalink
chore: remove unneeded method
Browse files Browse the repository at this point in the history
  • Loading branch information
ging-dev committed Jul 27, 2024
1 parent cb0777f commit 054f92e
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions src/Api/AuthenticatedApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,29 +39,11 @@ public function __construct(

private function populateLazyProperties(): void
{
$this->customer = $this->customer();
$this->accounts = $this->accounts();
}

/**
* @throws \IPay\Exception\SessionException
*/
private function customer(): Customer
{
return $this->objectMapper->hydrateObject(
$this->customer = $this->objectMapper->hydrateObject(
Customer::class,
$this->post('getCustomerDetails')['customerInfo'],
);
}

/**
* @return list<Account>
*
* @throws \IPay\Exception\SessionException
*/
private function accounts(): array
{
return $this->objectMapper->hydrateObjects(
$this->accounts = $this->objectMapper->hydrateObjects(
Account::class,
$this->post('getEntitiesAndAccounts')['accounts'],
)->toArray();
Expand Down

0 comments on commit 054f92e

Please sign in to comment.