-
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 method signatures and improve data handling
Method signatures for `Loyalty\SDK\Services\Admin\Contacts::add` are updated to make `$mobilePhone` nullable. The return types of `getById` methods have been changed. Also, data handling in the `MobilePhoneItemResult` class has been improved to better handle instances where the `PhoneNumberUtil` instance is not created. Tests are updated to reflect these changes. Signed-off-by: B24io <[email protected]>
- Loading branch information
Showing
6 changed files
with
30 additions
and
11 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\Contacts; | ||
|
||
use B24io\Loyalty\SDK\Core\Result\AbstractResult; | ||
|
||
class ContactResult extends AbstractResult | ||
{ | ||
public function getContact(): ContactItemResult | ||
{ | ||
return new ContactItemResult($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
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