-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change client create_contact response type
- Loading branch information
1 parent
a372e26
commit 0cbbe0f
Showing
3 changed files
with
46 additions
and
9 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
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,36 @@ | ||
<?php | ||
/** | ||
* Omnisend Client | ||
* | ||
* @package OmnisendClient | ||
*/ | ||
|
||
namespace Omnisend\Sdk\V1; | ||
|
||
use WP_Error; | ||
|
||
defined( 'ABSPATH' ) || die( 'no direct access' ); | ||
|
||
class CreateContactResponse { | ||
|
||
private string $contact_id; | ||
|
||
private WP_Error $wp_error; | ||
|
||
/** | ||
* @param string $contact_id | ||
* @param WP_Error $wp_error | ||
*/ | ||
public function __construct( string $contact_id, WP_Error $wp_error ) { | ||
$this->contact_id = $contact_id; | ||
$this->wp_error = $wp_error; | ||
} | ||
|
||
public function get_contact_id(): string { | ||
return $this->contact_id; | ||
} | ||
|
||
public function get_wp_error(): WP_Error { | ||
return $this->wp_error; | ||
} | ||
} |