Completed
Push — master ( 868971...61fa55 )
by Vincent
05:11
created

DeliveryReport::get()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 7
rs 9.4285
1
<?php
2
/**
3
 * BongaTech SMS Client Library for PHP.
4
 *
5
 * @copyright Copyright (c) 2017
6
 * @author   Vincent Mosoti <[email protected]>
7
 * @licence https://github.com/VMosoti/bongatech-sms/blob/master/LICENSE
8
 */
9
10
namespace VMosoti\BongaTech;
11
12
class DeliveryReport
13
{
14
    /**
15
     * @return Response
16
     */
17
    public static function get()
18
    {
19
        $report = json_decode(file_get_contents('php://input'));
20
21
        return new Response($report[0]);
22
23
    }
24
25
}