Eventable   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 6
eloc 4
dl 0
loc 27
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A deleting() 0 3 1
A saving() 0 3 1
A searched() 0 2 1
A searching() 0 3 1
A deleted() 0 2 1
A saved() 0 2 1
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