Price   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 16
dl 0
loc 26
c 0
b 0
f 0
ccs 0
cts 10
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 10 1
1
<?php
2
/**
3
 * Agency Theme for hiqdev/yii2-thememanager
4
 *
5
 * @link      https://github.com/hiqdev/yii2-theme-agency
6
 * @package   yii2-theme-agency
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2016-2018, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\themes\agency\widgets;
12
13
use yii\base\Widget;
14
15
class Price extends Widget
16
{
17
    public $title;
18
19
    public $subTitle;
20
21
    public $price;
22
23
    public $subPrice;
24
25
    public $options = [];
26
27
    public $footer;
28
29
    public $activeClass = '';
30
31
    public function run()
32
    {
33
        return $this->render('Price', [
34
            'title' => $this->title,
35
            'subTitle' => $this->subTitle,
36
            'price' => $this->price,
37
            'subPrice' => $this->subPrice,
38
            'options' => $this->options,
39
            'footer' => $this->footer,
40
            'activeClass' => $this->activeClass,
41
        ]);
42
    }
43
}
44