for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SquareetLabs\LaravelSmsUp;
/**
* Class SmsUpResponseMessage
* @package SquareetLabs\LaravelSmsUp
*/
class SmsUpResponseMessage
{
* @var string
private $status;
private $smsId;
private $custom;
private $errorId;
private $errorMsg;
public function __construct(array $response)
$this->status = $response['status'];
$this->smsId = $response['sms_id'];
$this->custom = isset($response['custom']) ? $response['custom'] : '';
$this->errorId = isset($response['error_id']) ? $response['error_id'] : '';
$this->errorMsg = isset($response['error_msg']) ? $response['error_msg'] : '';
}
* @return string|null
public function getStatus()
return $this->status;
public function getSmsId()
return $this->smsId;
public function getCustom()
return $this->custom;
public function getErrorId()
return $this->errorId;
public function getErrorMsg()
return $this->errorMsg;