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

DeliveryReport   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 7 1
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
}