60 lines
1.1 KiB
PHP
60 lines
1.1 KiB
PHP
<?php
|
|
namespace Stemcell\Sms\Api\Data;
|
|
|
|
/**
|
|
* @api
|
|
* Interface GatewayResponseInterface
|
|
* @package Stemcell\Sms\Api\Data
|
|
*/
|
|
interface GatewayResponseInterface
|
|
{
|
|
const IS_SUCCESS = 'is_success';
|
|
const MESSAGE = 'message';
|
|
const RESPONSE = 'response';
|
|
const TYPE = 'type';
|
|
|
|
/**
|
|
* @param bool $isSuccess
|
|
* @return $this
|
|
*/
|
|
public function setIsSuccess(bool $isSuccess) : self;
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function getIsSuccess() : bool;
|
|
|
|
/**
|
|
* @param string $message
|
|
* @return $this
|
|
*/
|
|
public function setMessage(string $message) : self;
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getMessage(): string | null;
|
|
|
|
/**
|
|
* @param array $response
|
|
* @return $this
|
|
*/
|
|
public function setResponse(array $response) : self;
|
|
|
|
/**
|
|
* @return string[]
|
|
*/
|
|
public function getResponse() : array;
|
|
|
|
/**
|
|
* @param string $type
|
|
* @return $this
|
|
*/
|
|
public function setType(string $type) : self;
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getType() : string ;
|
|
}
|