Skip to content

Commit

Permalink
Cast serverId to int
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardHarrison committed May 6, 2022
1 parent 415580a commit 6ba0c0c
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 6ba0c0c

Please sign in to comment.