VGetter   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __get() 0 3 2
1
<?php
2
/**
3
 * Vars getter
4
 * User: moyo
5
 * Date: 2018/5/29
6
 * Time: 10:54 PM
7
 */
8
9
namespace Carno\Web\Controller;
10
11
use Carno\Web\Chips\Controller\VGOps;
12
use Carno\Web\Chips\Controller\VGTypes;
13
use ArrayObject;
14
15
class VGetter extends ArrayObject
16
{
17
    use VGOps, VGTypes;
18
19
    /**
20
     * @param string $name
21
     * @return mixed
22
     */
23
    public function __get(string $name)
24
    {
25
        return $this->offsetExists($name) ? $this->offsetGet($name) : null;
26
    }
27
}
28