Completed
Push — master ( cf838f...441ca2 )
by Dmitry
04:31
created

OrderPositionDescriptionWidget::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 0
cts 0
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace hipanel\modules\server\widgets\cart;
4
5
use hipanel\modules\server\cart\ServerOrderProduct;
6
use yii\base\Widget;
7
8
/**
9
 * Class OrderPositionDescriptionWidget renders description for Server order position
10
 * in cart.
11
 * @package hipanel\modules\server\widgets\cart
12
 */
13
class OrderPositionDescriptionWidget extends Widget
14
{
15
    /**
16
     * @var ServerOrderProduct
17
     */
18
    public $position;
19
20
    /** @inheritdoc */
21
    public function run()
22
    {
23
        echo $this->render('_orderPositionDescription', ['position' => $this->position]);
24
    }
25
}
26