Type::all()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of the Mediapart LaPresseLibre Library.
5
 *
6
 * CC BY-NC-SA <https://github.com/mediapart/lapresselibre>
7
 *
8
 * For the full license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Mediapart\LaPresseLibre\Subscription;
13
14
final class Type
15
{
16
    const MONTHLY = 'mensuel';
17
    const ANNUAL = 'annuel';
18
    const OTHER = 'autre';
19
20
    /**
21
     * @return Array All subscription type.
22
     */
23
    public static function all()
24
    {
25
        return [
26
            self::MONTHLY,
27
            self::ANNUAL,
28
            self::OTHER,
29
        ];
30
    }
31
}
32