-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Cards service method signature
The signature for the method `getById` in the `Cards` service has been changed from `CardItemResult` to `CardResult`. The required changes have been made in the `Cards` class and the associated test. A new class `CardResult` has also been added. Signed-off-by: B24io <[email protected]>
- Loading branch information
Showing
4 changed files
with
96 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace B24io\Loyalty\SDK\Common\Result\Cards; | ||
|
||
use B24io\Loyalty\SDK\Core\Result\AbstractResult; | ||
|
||
class CardResult extends AbstractResult | ||
{ | ||
public function getCard(): CardItemResult | ||
{ | ||
return new CardItemResult($this->getCoreResponse()->getResponseData()->result); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters