ExtensionManager   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
namespace Finder\Contracts\Spider;
3
4
use Tracking\Abstracts\MetricManager;
5
6
use Finder\Spider\Traits\ExtensionManagerTrait;
7
use Support\Helps\DebugHelper;
8
use Support\Helps\CodeFileHelper;
9
10
/**
11
 * Outputs events information to the console.
12
 *
13
 * @see TriggerableInterface
14
 */
15
abstract class ExtensionManager
16
{
17
    use ExtensionManagerTrait;
18
19
    public function __construct($file, MetricManager $metrics)
20
    {
21
        $this->setFile($file);
22
        DebugHelper::debug('File Manager'.$this->getFile());
23
        $this->run();
24
25
        $metrics->registerMetricCount('Extensions', CodeFileHelper::getClassName($this));
26
    }
27
}
28