Timeline::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 7
c 0
b 0
f 0
ccs 0
cts 7
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
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 Timeline extends Widget
16
{
17
    public $title;
18
19
    public $subTitle;
20
21
    public $description;
22
23
    public $image;
24
25
    public function run()
26
    {
27
        return $this->render('Timeline', [
28
            'title' => $this->title,
29
            'subTitle' => $this->subTitle,
30
            'description' => $this->description,
31
            'image' => $this->image,
32
        ]);
33
    }
34
}
35