Completed
Push — master ( dcf652...3d17c5 )
by Vincenzo
02:18
created

ApiActionExceptionStub   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A performAction() 0 4 1
1
<?php
2
3
4
namespace Tests\Helpers\Stubs;
5
6
7
use App\Actions\ApiAction;
8
use App\Lib\Slime\Exceptions\SlimeException;
9
10
class ApiActionExceptionStub extends ApiAction
11
{
12
13
    protected function performAction()
14
    {
15
        throw new SlimeException("Self-destruction triggered", 500);
16
    }
17
}