Skip to content

Commit

Permalink
refactor: direct assignment in method
Browse files Browse the repository at this point in the history
  • Loading branch information
mvarlic committed Nov 29, 2023
1 parent be10b7c commit 5f0f760
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class InscriptionFinishResponse

public function __construct($httpCode)
{
$this->setCode($httpCode);
$this->code = $httpCode;

if ($httpCode == 204) {
$this->status = 'OK';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct($json)
$detailsObjectArray[] = TransactionDetail::createFromArray($detail);
}
}
$this->setDetails($detailsObjectArray);
$this->details = $detailsObjectArray;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ class TransactionCreateResponse
*/
public function __construct($json)
{
$this->fromJSON($json);
$this->token = Utils::returnValueIfExists($json, 'token');
$this->url = Utils::returnValueIfExists($json, 'url');
}

/**
Expand Down

0 comments on commit 5f0f760

Please sign in to comment.