Completed
Push — master ( 4953fb...adeed6 )
by zacksleo
06:28
created

Item   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 50%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
c 2
b 0
f 0
lcom 0
cbo 2
dl 0
loc 14
ccs 2
cts 4
cp 0.5
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPrice() 0 4 1
A getId() 0 4 1
1
<?php
2
3
namespace zacksleo\yii2\shop\models;
4
5
use yz\shoppingcart\CartPositionInterface;
6
use yz\shoppingcart\CartPositionTrait;
7
8
class Item extends \zacksleo\yii2\cms\models\Item implements CartPositionInterface
9
{
10
    use CartPositionTrait;
11
12 1
    public function getPrice()
13
    {
14 1
        return $this->price;
15
    }
16
17
    public function getId()
18
    {
19
        return $this->id;
20
    }
21
}
22