PaidState::available()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: igor
5
 * Date: 11/06/18
6
 * Time: 17:16
7
 */
8
9
namespace AdminWeb\PayerPagSeguro\States;
10
11
12
class PaidState extends AbstractState
13
{
14
15
    const STATE = self::PAID;
16
17
    const CODE = 3;
18
19
    public function contest()
20
    {
21
        return new ContestState();
22
    }
23
24
    public function available()
25
    {
26
        return new AvailableState();
27
    }
28
29
    public function returned()
30
    {
31
        return new ReturnedState();
32
    }
33
34
    public function __toString()
35
    {
36
        return self::STATE;
37
    }
38
}