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

Param   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 26
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A get() 0 4 1
A getParam() 0 4 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