Completed
Push — master ( d791dd...2d8ee5 )
by Ventaquil
02:14
created

MagicGet::__get()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 2
eloc 4
nc 2
nop 1
1
<?php
2
3
namespace PHPAlgorithms\GraphTools\Traits;
4
5
trait MagicGet {
6
    public function __get($name)
7
    {
8
        if (isset($this->{$name})) {
9
            return $this->{$name};
10
        }
11
12
        return null;
13
    }
14
}
15