Status   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A all() 0 10 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
/**
15
 * @see https://github.com/NextINpact/LaPresseLibreSDK/wiki/Fonctionnement-des-web-services#statut-de-labonnement
16
 */
17
final class Status
18
{
19
    const ACTIVE = 1;
20
    const WAITING_FOR_VALIDATION = 2;
21
    const SUSPENDED = 3;
22
    const TERMINATED = 4;
23
    const CANCELED = 5;
24
    const IN_PAYMENT = 6;
25
    const REFUNDED = 7;
26
27
    /**
28
     * @return Array All subscription statuses.
29
     */
30
    public static function all()
31
    {
32
        return [
33
            self::ACTIVE,
34
            self::WAITING_FOR_VALIDATION,
35
            self::SUSPENDED,
36
            self::TERMINATED,
37
            self::CANCELED,
38
            self::IN_PAYMENT,
39
            self::REFUNDED,
40
        ];
41
    }
42
}
43