TNTSearch   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 15
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 2
1
<?php
2
/**
3
 * @link https://github.com/vuongxuongminh/yii2-searchable
4
 * @copyright Copyright (c) 2019 Vuong Xuong Minh
5
 * @license [New BSD License](http://www.opensource.org/licenses/bsd-license.php)
6
 */
7
8
namespace vxm\searchable;
9
10
use Yii;
11
12
use yii\base\Configurable;
13
14
use TeamTNT\TNTSearch\TNTSearch as BaseTNTSearch;
15
16
/**
17
 * Class TNTSearch base on [[\TeamTNT\TNTSearch\TNTSearch]] implementing yii configurable.
18
 *
19
 * @author Vuong Minh <[email protected]>
20
 * @since 1.0.0
21
 */
22
class TNTSearch extends BaseTNTSearch implements Configurable
23
{
24
    /**
25
     * @inheritDoc
26
     */
27 12
    public function __construct(array $config = [])
28
    {
29 12
        if (!empty($config)) {
30 12
            Yii::configure($this, $config);
31
        }
32
33 12
        parent::__construct();
34 12
    }
35
36
}
37