Completed
Push — master ( 2469a2...4a4199 )
by Dmitry
01:51
created

Plugin::beforeUpdate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 2
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 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...
15
    {
16
    }
17
    public function getRepositoryClass(Space $space)
18
    {
19
    }
20
    public function getEntityClass(Space $space)
21
    {
22
    }
23
    public function generateKey(Entity $instance, Space $space)
24
    {
25
    }
26
    public function beforeCreate(Entity $instance, Space $space)
27
    {
28
    }
29
    public function afterCreate(Entity $instance, Space $space)
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...
Unused Code introduced by
The parameter $space 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...
30
    {
31
    }
32
    public function beforeUpdate(Entity $instance, Space $space)
33
    {
34
    }
35
    public function afterUpdate(Entity $instance, Space $space)
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...
Unused Code introduced by
The parameter $space 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...
36
    {
37
    }
38
    public function beforeRemove(Entity $instance, Space $space)
39
    {
40
    }
41
}
42