ItemAttributeCollection::__get()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
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
}