src/Response/BatchStatus/Details.php 1 location
|
@@ 42-47 (lines=6) @@
|
39 |
|
|
40 |
|
public function init() |
41 |
|
{ |
42 |
|
if(isset($this->data->sendtime)) { |
43 |
|
$this->sendTime = \DateTimeImmutable::createFromFormat('d-m-Y H:i:s', $this->data->sendtime); |
44 |
|
if($this->sendTime === false) { |
45 |
|
throw new InvalidResponseException('`sendtime` does not have the correct format. Value given: '.$this->data->sendtime); |
46 |
|
} |
47 |
|
} |
48 |
|
|
49 |
|
if(isset($this->data->batchid)) { |
50 |
|
$this->batchId = (int)$this->data->batchid; |
src/Response/BatchStatus/Stat.php 1 location
|
@@ 31-36 (lines=6) @@
|
28 |
|
|
29 |
|
public function init() |
30 |
|
{ |
31 |
|
if(isset($this->data->sendtime)) { |
32 |
|
$this->sendTime = \DateTimeImmutable::createFromFormat('d-m-Y H:i:s', $this->data->sendtime); |
33 |
|
if($this->sendTime === false) { |
34 |
|
throw new InvalidResponseException('`sendtime` does not have the correct format. Value given: '.$this->data->sendtime); |
35 |
|
} |
36 |
|
} |
37 |
|
|
38 |
|
if(isset($this->data->buffered)) { |
39 |
|
$this->buffered = (int)$this->data->buffered; |