BetStatus::getAll()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 0
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