CancellationResponse   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 38
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getStatus() 0 4 1
A getDate() 0 4 1
1
<?php
2
namespace PHPSC\PagSeguro\Purchases\Subscriptions;
3
4
use DateTime;
5
6
/**
7
 * @author Luís Otávio Cobucci Oblonczyk <[email protected]>
8
 */
9
class CancellationResponse
10
{
11
    /**
12
     * @var string
13
     */
14
    private $status;
15
16
    /**
17
     * @var DateTime
18
     */
19
    private $date;
20
21
    /**
22
     * @param string $status
23
     * @param DateTime $date
24
     */
25 4
    public function __construct($status, DateTime $date)
26
    {
27 4
        $this->status = $status;
28 4
        $this->date = $date;
29 4
    }
30
31
    /**
32
     * @return string
33
     */
34 1
    public function getStatus()
35
    {
36 1
        return $this->status;
37
    }
38
39
    /**
40
     * @return DateTime
41
     */
42 1
    public function getDate()
43
    {
44 1
        return $this->date;
45
    }
46
}
47