Completed
Pull Request — master (#17)
by
unknown
01:11
created

CartQuantityItem   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setQuantity() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: franziskakoehn
5
 * Date: 15.09.17
6
 * Time: 14:33
7
 */
8
9
namespace yii2mod\cart\models;
10
11
12
trait CartQuantityItem
13
{
14
    public $quantity = 0;
15
16
    public function setQuantity($qty){
17
        $this->quantity = $qty;
18
    }
19
20
}