Type   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A all() 0 6 1
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