TextPanel   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 1
c 2
b 0
f 2
lcom 0
cbo 1
dl 0
loc 24
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A rules() 0 6 1
1
<?php
2
3
namespace cornernote\dashboard\panels;
4
5
use cornernote\dashboard\Panel;
6
use Yii;
7
8
/**
9
 * TextPanel
10
 * @package cornernote\dashboard\panels
11
 */
12
class TextPanel extends Panel
13
{
14
15
    /**
16
     * @var string
17
     */
18
    public $text;
19
20
    /**
21
     * @var string
22
     */
23
    public $viewPath = '@cornernote/dashboard/views/dashboard/panels/text';
24
25
    /**
26
     * @inheritdoc
27
     */
28
    public function rules()
29
    {
30
        return [
31
            [['text'], 'required'],
32
        ];
33
    }
34
35
}