for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SquareetLabs\LaravelSmsUp;
/**
* Class SmsUpReportResponseMessage
* @package SquareetLabs\LaravelSmsUp
*/
class SmsUpReportResponseMessage
{
* @var string
private $status;
private $smsId;
private $custom;
private $from;
private $to;
private $smsDate;
private $dlrDate;
public function __construct(array $response)
$this->status = $response['status'];
$this->smsId = $response['sms_id'];
$this->from = $response['from'];
$this->to = $response['to'];
$this->custom = isset($response['custom']) ? $response['custom'] : '';
$this->smsDate = isset($response['sms_date']) ? $response['sms_date'] : '';
$this->dlrDate = isset($response['dlr_date']) ? $response['dlr_date'] : '';
}
* @return string|null
public function getStatus()
return $this->status;
public function getSmsId()
return $this->smsId;
public function getCustom()
return $this->custom;
public function getFrom()
return $this->from;
public function getTo()
return $this->to;
public function getSmsDate()
return $this->smsDate;
public function getDlrDate()
return $this->dlrDate;