HostedImage::__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 HostedImage content type.
9
 */
10
class HostedImage extends Image
11
{
12
    public $input = 'file';
13
    public $usable = true;
14
15
    /**
16
     * {@inheritdoc}
17
     */
18
    public function __construct($config = [])
19
    {
20
        parent::__construct($config);
21
        $this->name = Yii::t('app', 'Hosted image');
22
        $this->description = Yii::t('app', 'Upload an image to servers.');
23
    }
24
}
25