Failed Conditions
Push — master ( ebb1ea...d49c03 )
by Bernhard
06:05
created

Environment::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 3
c 1
b 0
f 1
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 1
nc 1
nop 0
crap 2
1
<?php
2
3
/*
4
 * This file is part of the puli/manager package.
5
 *
6
 * (c) Bernhard Schussek <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Puli\Manager\Api;
13
14
/**
15
 * Contains the environment constants that Puli operates in.
16
 *
17
 * @since  1.0
18
 *
19
 * @author Bernhard Schussek <[email protected]>
20
 */
21
final class Environment
22
{
23
    /**
24
     * The development environment.
25
     */
26
    const DEV = 'dev';
27
28
    /**
29
     * The production environment.
30
     */
31
    const PROD = 'prod';
32
33
    /**
34
     * Returns all environment names.
35
     *
36
     * @return string[] The environment names.
37
     */
38 366
    public static function all()
39
    {
40
        return array(
41 366
            self::DEV,
42 366
            self::PROD,
43
        );
44
    }
45
46
    /**
47
     * Must not be instantiated.
48
     */
49
    private function __construct()
50
    {
51
    }
52
}
53