AvailableState   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A returned() 0 3 1
A __toString() 0 3 1
A contest() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: igor
5
 * Date: 11/06/18
6
 * Time: 17:20
7
 */
8
9
namespace AdminWeb\PayerPagSeguro\States;
10
11
12
class AvailableState extends AbstractState
13
{
14
15
    const STATE = self::AVAILABLE;
16
17
    const CODE = 4;
18
19
    public function contest()
20
    {
21
        return new ContestState();
22
    }
23
24
    public function returned()
25
    {
26
        return new ReturnedState();
27
    }
28
    
29
    public function __toString()
30
    {
31
       return self::STATE;
32
    }
33
}