Méthode | Description | |
---|---|---|
__construct ( array $data, string $bot_name ) | ServerResponse constructor. | |
isOk ( ) : boolean | If response is ok | |
printError ( ) : string | Print error |
Méthode | Description | |
---|---|---|
isAssoc ( array $array ) : boolean | Check if array is associative |
Méthode | Description | |
---|---|---|
createResultObject ( array $result, string $bot_name ) : |
Create and return the object of the received result | |
createResultObjects ( array $result, string $bot_name ) : null | |
Create and return the objects array of the received result |
public __construct ( array $data, string $bot_name ) | ||
$data | array | |
$bot_name | string |