AnaloguePlugin   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 4
Bugs 1 Features 0
Metric Value
wmc 1
c 4
b 1
f 0
lcom 0
cbo 0
dl 0
loc 32
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
register() 0 1 ?
getCustomEvents() 0 1 ?
1
<?php
2
3
namespace Analogue\ORM\Plugins;
4
5
use Analogue\ORM\System\Manager;
6
7
abstract class AnaloguePlugin implements AnaloguePluginInterface
8
{
9
    /**
10
     * Manager instance
11
     *
12
     * @var Manager
13
     */
14
    protected $manager;
15
16
    /**
17
     * AnaloguePlugin constructor.
18
     * @param Manager $manager
19
     */
20
    public function __construct(Manager $manager)
21
    {
22
        $this->manager = $manager;
23
    }
24
25
    /**
26
     * Boot the plugin
27
     *
28
     * @return void
29
     */
30
    abstract public function register();
31
32
    /**
33
     * Get custom events provided by the plugin
34
     *
35
     * @return array
36
     */
37
    abstract public function getCustomEvents();
38
}
39