ItemAttributeCollection   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __get() 0 5 2
1
<?php namespace Darryldecode\Cart;
2
3
/**
4
 * Created by PhpStorm.
5
 * User: darryl
6
 * Date: 1/17/2015
7
 * Time: 12:03 PM
8
 */
9
10
use Illuminate\Support\Collection;
11
12
class ItemAttributeCollection extends Collection {
13
14
    public function __get($name)
15
    {
16
        if( $this->has($name) ) return $this->get($name);
17
        return null;
18
    }
19
}