PersistenceType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A toArray() 0 4 1
1
<?php
2
3
namespace Betfair\Model\PlaceOrders;
4
5
use Betfair\Model\ArrayableInterface;
6
7
abstract class PersistenceType implements ArrayableInterface
8
{
9
    /**
10
     * Lapse the order when the market is turned in-play
11
     */
12
    const LAPSE = "LAPSE";
13
14
    /**
15
     * Persist the order to in-play. The bet will be place automatically into the in-play market at the start of the event
16
     */
17
    const PERSIST = "PERSIST";
18
    /**
19
     * Put the order into the auction (SP) at turn-in-play
20
     */
21
    const MARKET_ON_CLOSE = "MARKET_ON_CLOSE";
22
23
    public static function toArray()
24
    {
25
        return array(self::LAPSE, self::PERSIST, self::MARKET_ON_CLOSE);
26
    }
27
}
28