Completed
Push — master ( 952773...a13902 )
by Evgeny
02:39
created

Extension   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 * Copyright 2016, Cake Development Corporation (http://cakedc.com)
4
 *
5
 * Licensed under The MIT License
6
 * Redistributions of files must retain the above copyright notice.
7
 *
8
 * @copyright Copyright 2016, Cake Development Corporation (http://cakedc.com)
9
 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
10
 */
11
12
namespace CakeDC\Api\Service\Extension;
13
14
use CakeDC\Api\Service\ExtensionRegistry;
15
use Cake\Core\InstanceConfigTrait;
16
17
/**
18
 * Class Extension
19
 *
20
 * @package CakeDC\Api\Service\Extension
21
 */
22
abstract class Extension
23
{
24
    use InstanceConfigTrait;
25
26
    protected $_defaultConfig = [];
27
28
    /**
29
     * Extension constructor.
30
     *
31
     * @param ExtensionRegistry $registry An ExtensionRegistry instance.
32
     * @param array $config Configuration.
33
     */
34
    public function __construct(ExtensionRegistry $registry, array $config = [])
0 ignored issues
show
Unused Code introduced by
The parameter $registry is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
35
    {
36
        $this->config($config);
37
    }
38
}
39