MarketProjection   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAll() 0 12 1
1
<?php
2
/**
3
 * This file is part of the Betfair library.
4
 *
5
 * (c) Daniele D'Angeli <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace Betfair\Model;
11
12
abstract class MarketProjection
13
{
14
    const COMPETITION = "COMPETITION"; //If not selected then the competition will not be returned with marketCatalogue
15
    const EVENT = "EVENT"; //If not selected then the event will not be returned with marketCatalogue
16
    const EVENT_TYPE = "EVENT_TYPE"; //If not selected then the eventType will not be returned with marketCatalogue
17
    const MARKET_START_TIME = "MARKET_START_TIME"; //If not selected then the start time will not be returned with marketCatalogue
18
    const MARKET_DESCRIPTION = "MARKET_DESCRIPTION"; //If not selected then the description will not be returned with marketCatalogue
19
    const RUNNER_DESCRIPTION = "RUNNER_DESCRIPTION";// not selected then the runners will not be returned with marketCatalogue
20
    const RUNNER_METADATA = "RUNNER_METADATA";//If not selected then the runner metadata will not be returned with marketCatalogue. If selected then RUNNER_DESCRIPTION will also be returned regardless of whether it is included as a market projection.
21
22
    public static function getAll()
23
    {
24
        return array(
25
            self::COMPETITION,
26
            self::EVENT,
27
            self::EVENT_TYPE,
28
            self::MARKET_START_TIME,
29
            self::MARKET_DESCRIPTION,
30
            self::RUNNER_DESCRIPTION,
31
            self::RUNNER_METADATA
32
        );
33
    }
34
}
35