ThemeAbstract   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace yiicod\fileupload\themes;
4
5
use yii\base\BaseObject;
6
use yiicod\fileupload\widgets\FileUpload;
7
8
/**
9
 * Class ThemeAbstract
10
 * Main theme abstract
11
 *
12
 * @author Virchenko Maksim <[email protected]>
13
 *
14
 * @package yiicod\fileupload\components\base
15
 */
16
abstract class ThemeAbstract extends BaseObject implements ThemeInterface
17
{
18
    /**
19
     * File upload widget instance
20
     *
21
     * @var FileUpload
22
     */
23
    protected $widget;
24
25
    /**
26
     * ThemeAbstract constructor.
27
     *
28
     * @param FileUpload $widget
29
     * @param array $config
30
     */
31
    public function __construct(FileUpload $widget, array $config = [])
32
    {
33
        $this->widget = $widget;
34
35
        parent::__construct($config);
36
    }
37
}
38