HostedImage   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
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 15
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 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