AccountChange   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A allStates() 0 7 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\Operation;
13
14
use Mediapart\LaPresseLibre\Endpoint;
15
16
abstract class AccountChange extends Endpoint
17
{
18
    /**
19
     * `CodeEtat` output argument could have the following values :
20
     *
21
     * @var int
22
     * @see https://github.com/NextINpact/LaPresseLibreSDK/wiki/Fonctionnement-des-web-services#param%C3%A8tres-de-sortie-1
23
     */
24
    const SUCCESS = 1;
25
    const FAILED_EXISTING_EMAIL = 2;
26
    const FAILED_EXISTING_USERNAME = 3;
27
    const FAILED = 4;
28
29
    public static function allStates()
30
    {
31
        return [
32
            self::SUCCESS,
33
            self::FAILED_EXISTING_EMAIL,
34
            self::FAILED_EXISTING_USERNAME,
35
            self::FAILED,
36
        ];
37
    }
38
}
39