Completed
Push — master ( 281eb8...04fe01 )
by Sebastian
10:51
created

Env::setup()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
namespace phpbu\App\Adapter;
3
4
use phpbu\App\Adapter;
5
6
/**
7
 * Env Adapter
8
 *
9
 * @package    phpbu
10
 * @subpackage App
11
 * @author     Sebastian Feldmann <[email protected]>
12
 * @copyright  Sebastian Feldmann <[email protected]>
13
 * @license    https://opensource.org/licenses/MIT The MIT License (MIT)
14
 * @link       http://phpbu.de/
15
 * @since      Class available since Release 4.0.0
16
 */
17
class Env implements Adapter
18
{
19
    /**
20
     * Setup the adapter.
21
     *
22
     * @param  array $conf
23
     * @return void
24
     */
25
    public function setup(array $conf)
26
    {
27
        // do something fooish
28
    }
29
30
    /**
31
     * Return a value for a given path.
32
     *
33
     * @param  string $path
34
     * @return string
35
     */
36
    public function getValue($path)
37
    {
38
        return getenv($path);
39
    }
40
}
41