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

AbstractBehaviour::afterUpdate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 1
nc 1
nop 3
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