BetStatus   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAll() 0 9 1
1
<?php
2
3
namespace Betfair\Model;
4
5
/**
6
 *
7
 * SETTLED
8
A matched bet that was settled normally
9
VOIDED
10
A matched bet that was subsequently voided by Betfair, before, during or after settlement
11
LAPSED
12
Unmatched bet that was cancelled by Betfair (for example at turn in play).
13
CANCELLED
14
Unmatched bet that was cancelled by an explicit customer action.
15
 *
16
 * Class BetStatus
17
 * @package Betfair\Model
18
 */
19
abstract class BetStatus
20
{
21
    const SETTLED = "SETTLED";
22
    const VOIDED = "VOIDED";
23
    const LAPSED = "LAPSED";
24
    const CANCELLED = "CANCELLED";
25
26
    public static function getAll()
27
    {
28
        return array(
29
            self::SETTLED,
30
            self::CANCELLED,
31
            self::CANCELLED,
32
            self::VOIDED
33
        );
34
    }
35
}
36