Ticker   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace app\models\types;
4
5
use Yii;
6
7
/**
8
 * This is the model class for Ticker content type.
9
 */
10
class Ticker extends Text
11
{
12
    public $html = '<span class="ticker bigtext">%data%</span>';
13
    public $css = '%field% { text-align: center; vertical-align: middle; }';
14
    public $usable = true;
15
    public $exemple = '@web/images/ticker.preview.jpg';
16
17
    /**
18
     * {@inheritdoc}
19
     */
20
    public function __construct($config = [])
21
    {
22
        parent::__construct($config);
23
        $this->name = Yii::t('app', 'Ticker');
24
        $this->description = Yii::t('app', 'Short text content, usually under 50 characters with a short duration.');
25
    }
26
}
27