Ticker::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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