Completed
Push — develop ( 980f1c...19a8b8 )
by Luís
08:45
created

Checkout::getMaxUses()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 1
cts 1
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
namespace PHPSC\PagSeguro\Requests\Checkout;
3
4
use PHPSC\PagSeguro\Customer\Customer;
5
6
/**
7
 * @author Luís Otávio Cobucci Oblonczyk <[email protected]>
8
 */
9
class Checkout
10
{
11
    /**
12
     * @var Order
13
     */
14
    private $order;
15
16
    /**
17
     * @var Customer
18
     */
19
    private $customer;
20
21
    /**
22
     * @var string
23
     */
24
    private $redirectTo;
25
26
    /**
27
     * @var int
28
     */
29
    private $maxUses;
30
31
    /**
32
     * @var int
33
     */
34
    private $maxAge;
35
36
    /**
37
    * @var string
38
    */
39
    private $notificationURL;
40
41
    /**
42
     * @param Order $order
43 24
     * @param Customer $customer
0 ignored issues
show
Bug introduced by
There is no parameter named $customer. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
44
     * @param string $redirectTo
0 ignored issues
show
Bug introduced by
There is no parameter named $redirectTo. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
45 24
     * @param string $maxUses
0 ignored issues
show
Bug introduced by
There is no parameter named $maxUses. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
46 24
     * @param string $maxAge
0 ignored issues
show
Bug introduced by
There is no parameter named $maxAge. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
47
     */
48
    public function __construct(Order $order = null)
49
    {
50
        $this->order = $order ?: new Order();
51 6
    }
52
53 6
    /**
54
     * @return Order
55
     */
56
    public function getOrder()
57
    {
58
        return $this->order;
59 4
    }
60
61 4
    /**
62
     * @return Customer
63
     */
64
    public function getCustomer()
65
    {
66
        return $this->customer;
67 5
    }
68
69 5
    /**
70 5
     * @param Customer $customer
71
     */
72
    public function setCustomer(Customer $customer)
73
    {
74
        $this->customer = $customer;
75 4
    }
76
77 4
    /**
78
     * @return string
79
     */
80
    public function getRedirectTo()
81
    {
82
        return $this->redirectTo;
83 4
    }
84
85 4
    /**
86 4
     * @param string $redirectTo
87
     */
88
    public function setRedirectTo($redirectTo)
89
    {
90
        $this->redirectTo = $redirectTo;
91 4
    }
92
93 4
    /**
94
     * @return int
95
     */
96
    public function getMaxUses()
97
    {
98
        return $this->maxUses;
99 4
    }
100
101 4
    /**
102 4
     * @param int $maxUses
103
     */
104
    public function setMaxUses($maxUses)
105
    {
106
        $this->maxUses = $maxUses;
107 4
    }
108
109 4
    /**
110
     * @return int
111
     */
112
    public function getMaxAge()
113
    {
114
        return $this->maxAge;
115 4
    }
116
117 4
    /**
118 4
     * @param int $maxAge
119
     */
120
    public function setMaxAge($maxAge)
121
    {
122
        $this->maxAge = $maxAge;
123
    }
124
125
    /**
126
    * @return string
127
    */
128
    public function getNotificationURL()
129
    {
130
        return $this->notificationURL;
131
    }
132
133
    /**
134
    * @param string $notificationURL
135
    */
136
    public function setNotificationURL($notificationURL)
137
    {
138
        $this->notificationURL = $notificationURL;
139
    }
140
}
141