MarketProjection::getAll()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

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