Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function getType(): string |
||
13 | { |
||
14 | if (isset(static::$searchType)) { |
||
15 | return static::$searchType; |
||
16 | } |
||
17 | |||
18 | $className = class_basename(static::class); |
||
19 | |||
20 | $type = Str::before($className, 'SearchAspect'); |
||
21 | |||
22 | $type = Str::snake(Str::plural($type)); |
||
23 | |||
24 | return Str::plural($type); |
||
25 | } |
||
26 | } |
||
27 |