Completed
Push — master ( 6067eb...3f355c )
by Samuel
15:57 queued 01:01
created

AbstractBehaviour   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 44
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A beforeInsert() 0 3 1
A afterInsert() 0 3 1
A beforeUpdate() 0 3 1
A afterUpdate() 0 3 1
A beforeDelete() 0 3 1
A afterDelete() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleMapper\Behaviour;
6
7
use SimpleMapper\ActiveRow;
8
9
abstract class AbstractBehaviour implements Behaviour
10
{
11
    /**
12
     * @inheritdoc
13
     */
14
    public function beforeInsert(array $data): array
15
    {
16
    }
17
18
    /**
19
     * @inheritdoc
20
     */
21
    public function afterInsert(ActiveRow $record, array $data): void
22
    {
23
    }
24
25
    /**
26
     * @inheritdoc
27
     */
28
    public function beforeUpdate(ActiveRow $record, array $data): array
29
    {
30
    }
31
32
    /**
33
     * @inheritdoc
34
     */
35
    public function afterUpdate(ActiveRow $oldRecord, ActiveRow $newRecord, array $data): void
36
    {
37
    }
38
39
    /**
40
     * @inheritdoc
41
     */
42
    public function beforeDelete(ActiveRow $record, bool $soft): void
43
    {
44
    }
45
46
    /**
47
     * @inheritdoc
48
     */
49
    public function afterDelete(ActiveRow $record, bool $soft): void
50
    {
51
    }
52
}
53