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

CartQuantityItem::setQuantity()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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