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

MagicGet   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __get() 0 8 2
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