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

OrderPositionDescriptionWidget   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 1
cbo 1
dl 0
loc 13
ccs 0
cts 0
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 4 1
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