Completed
Push — master ( fc9daa...0ac164 )
by Dmitry
01:50
created

Plugin   A

Complexity

Total Complexity 12

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 12
lcom 0
cbo 0
dl 0
loc 45
rs 10
c 0
b 0
f 0

12 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getMapper() 0 4 1
A afterInstantiate() 0 3 1
A getRepositoryClass() 0 3 1
A getEntityClass() 0 3 1
A generateKey() 0 3 1
A beforeCreate() 0 3 1
A afterCreate() 0 3 1
A beforeUpdate() 0 3 1
A afterUpdate() 0 3 1
A beforeRemove() 0 3 1
A afterRemove() 0 3 1
1
<?php
2
3
namespace Tarantool\Mapper;
4
5
abstract class Plugin
6
{
7
    protected $mapper;
8
9
    public function __construct(Mapper $mapper)
10
    {
11
        $this->mapper = $mapper;
12
    }
13
14
    public function getMapper()
15
    {
16
        return $this->mapper;
17
    }
18
19
    public function afterInstantiate(Entity $instance)
0 ignored issues
show
Unused Code introduced by
The parameter $instance 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...
20
    {
21
    }
22
    public function getRepositoryClass(Space $space)
23
    {
24
    }
25
    public function getEntityClass(Space $space)
26
    {
27
    }
28
    public function generateKey(Entity $instance, Space $space)
29
    {
30
    }
31
    public function beforeCreate(Entity $instance, Space $space)
32
    {
33
    }
34
    public function afterCreate(Entity $instance, Space $space)
35
    {
36
    }
37
    public function beforeUpdate(Entity $instance, Space $space)
38
    {
39
    }
40
    public function afterUpdate(Entity $instance, Space $space)
41
    {
42
    }
43
    public function beforeRemove(Entity $instance, Space $space)
44
    {
45
    }
46
    public function afterRemove(Entity $instance, Space $space)
47
    {
48
    }
49
}
50