Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class SoftDelete implements BehaviourInterface |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $column; |
||
19 | |||
20 | public function __construct($column = 'deleted_at') |
||
21 | { |
||
22 | $this->column = $column; |
||
23 | } |
||
24 | |||
25 | public function getName() |
||
26 | { |
||
27 | return 'soft_delete'; |
||
28 | } |
||
29 | |||
30 | public function onDelete(Mapper $mapper, Delete $delete) |
||
33 | } |
||
34 | |||
35 | public function onNewQuery(/** @scrutinizer ignore-unused */Mapper $mapper, Query $query) |
||
42 | } |
||
43 | } |
||
44 |