Eventable::saving()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Isswp101\Persimmon\Concerns;
4
5
use Isswp101\Persimmon\DTO\SearchResponse;
6
7
trait Eventable
8
{
9
    protected function saving(): bool
10
    {
11
        return true;
12
    }
13
14
    protected function saved(): void
15
    {
16
    }
17
18
    protected function deleting(): bool
19
    {
20
        return true;
21
    }
22
23
    protected function deleted(): void
24
    {
25
    }
26
27
    protected function searching(): bool
28
    {
29
        return true;
30
    }
31
32
    protected function searched(SearchResponse $response): void
0 ignored issues
show
Unused Code introduced by
The parameter $response is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

32
    protected function searched(/** @scrutinizer ignore-unused */ SearchResponse $response): void

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
33
    {
34
    }
35
}
36