Skip to content

Commit

Permalink
Merge pull request #11 from socketlabs/hotfix/SS-1041
Browse files Browse the repository at this point in the history
Cast serverId to int
  • Loading branch information
david-schrenker authored May 6, 2022
2 parents 415580a + 6ba0c0c commit 017368c
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions InjectionApi/src/Core/InjectionRequest.php
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();
}

}
}

0 comments on commit 017368c

Please sign in to comment.