Completed
Pull Request — master (#9)
by Samuel
03:17
created

AbstractBehaviour::afterUpdate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 1
nc 1
nop 3
crap 1
1
<?php
2
3
namespace SimpleMapper\Behaviour;
4
5
use SimpleMapper\ActiveRow;
6
7
abstract class AbstractBehaviour implements Behaviour
8
{
9
    /**
10
     * @inheritdoc
11
     */
12
    public function beforeInsert(array $data): array
13
    {
14
    }
15
16
    /**
17
     * @inheritdoc
18
     */
19 2
    public function afterInsert(ActiveRow $record, array $data): void
20
    {
21 2
    }
22
23
    /**
24
     * @inheritdoc
25
     */
26
    public function beforeUpdate(ActiveRow $record, array $data): array
27
    {
28
    }
29
30
    /**
31
     * @inheritdoc
32
     */
33 2
    public function afterUpdate(ActiveRow $oldRecord, ActiveRow $newRecord, array $data): void
34
    {
35 2
    }
36
37
    /**
38
     * @inheritdoc
39
     */
40 2
    public function beforeDelete(ActiveRow $record, bool $soft): void
41
    {
42 2
    }
43
44
    /**
45
     * @inheritdoc
46
     */
47 2
    public function afterDelete(ActiveRow $record, bool $soft): void
48
    {
49 2
    }
50
}
51