| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 53 | public function processResponse() |
||
| 54 | { |
||
| 55 | $rawResponse = $this->rawResponse; |
||
| 56 | |||
| 57 | if (empty($rawResponse)) { |
||
| 58 | return; |
||
| 59 | } |
||
| 60 | |||
| 61 | foreach (str_split($rawResponse, 38) as $item) |
||
| 62 | { |
||
| 63 | $deviceData = unpack('N1timestamp/n1length/H*token', $item); |
||
| 64 | |||
| 65 | $this->recipients->append( |
||
| 66 | new RecipientDevice($deviceData['token'], new APNSMessage()) |
||
| 67 | ); |
||
| 68 | } |
||
| 69 | } |
||
| 70 | } |
||
| 71 |