Completed
Pull Request — master (#4)
by Joao
01:15
created

Param::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
4
namespace ByJG\Config;
5
6
7
class Param
8
{
9
    protected $param;
10
11
    /**
12
     * Param constructor.
13
     * @param $param
14
     */
15
    protected function __construct($param)
16
    {
17
        $this->param = $param;
18
    }
19
20
    public static function get($param)
21
    {
22
        return new Param($param);
23
    }
24
25
    /**
26
     * @return mixed
27
     */
28
    public function getParam()
29
    {
30
        return $this->param;
31
    }
32
}
33