AbstractState::debited()   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: 10/06/18
6
 * Time: 22:34
7
 */
8
9
namespace AdminWeb\PayerPagSeguro\States;
10
11
use AdminWeb\Payer\States\AbstractState as BaseState;
12
use AdminWeb\Payer\States\StateException;
13
14
abstract class AbstractState extends BaseState
15
{
16
    const WAITING_PAYMENT = 'WAITING_PAYMENT';
17
    const IN_ANALYSIS = 'IN_ANALYSIS';
18
    const CONTEST = 'CONTEST';
19
    const RETURNED = 'RETURNED';
20
    const AVAILABLE = 'AVAILABLE';
21
    const DEBITED = 'DEBITED';
22
23
    public function waitingPayment()
24
    {
25
        throw new StateException("Can't be waiting payment");
26
    }
27
28
    public function inAnalysis()
29
    {
30
        throw new StateException("Can't be in analysis");
31
    }
32
33
    public function contest()
34
    {
35
        throw new StateException("Can't be contest");
36
    }
37
38
    public function returned()
39
    {
40
        throw new StateException("Can't be returned");
41
    }
42
43
    public function available()
44
    {
45
        throw new StateException("Can't be available");
46
    }
47
48
    public function debited()
49
    {
50
        throw new StateException("Can't be debited");
51
    }
52
53
}