-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
415580a
commit 6ba0c0c
Showing
1 changed file
with
18 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,38 @@ | ||
<?php | ||
|
||
namespace Socketlabs\Core; | ||
|
||
/** | ||
* Represents a injection request for sending to the Injection Api. | ||
*/ | ||
class InjectionRequest { | ||
|
||
class InjectionRequest | ||
{ | ||
|
||
/** | ||
* list of messages to be sent. | ||
*/ | ||
* list of messages to be sent. | ||
*/ | ||
public $Messages; | ||
|
||
/** | ||
* Your SocketLabs ServerId number. | ||
*/ | ||
* Your SocketLabs ServerId number. | ||
*/ | ||
public $ServerId; | ||
|
||
/** | ||
* Your SocketLabs Injection API key. | ||
*/ | ||
* Your SocketLabs Injection API key. | ||
*/ | ||
public $ApiKey; | ||
|
||
/** | ||
* Creates a new instance of the InjectionRequest class. | ||
* @param serverId | ||
* @param apiKey | ||
*/ | ||
* Creates a new instance of the InjectionRequest class. | ||
* @param serverId | ||
* @param apiKey | ||
*/ | ||
public function __construct($serverId, $apiKey) | ||
{ | ||
$this->ServerId = $serverId; | ||
{ | ||
$this->ServerId = (int)$serverId; | ||
$this->ApiKey = $apiKey; | ||
|
||
$this->Messages = array(); | ||
} | ||
|
||
} | ||
} |