Completed
Push — master ( f03319...04cbfe )
by Dmitry
05:47 queued 01:49
created

Plugin   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getRepositoryClass() 0 1 1
A getEntityClass() 0 1 1
A beforeCreate() 0 1 1
A beforeUpdate() 0 1 1
A beforeRemove() 0 1 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 getRepositoryClass(Space $space) {}
15
    public function getEntityClass(Space $space) {}
16
    public function beforeCreate(Entity $instance, Space $space) {}
17
    public function beforeUpdate(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...
18
    public function beforeRemove(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...
19
}
20