Passed
Push — master ( 724c6f...9da6fd )
by Rafael
06:22
created

InternalServerError   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 14
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCategory() 0 3 1
1
<?php
2
/*******************************************************************************
3
 *  This file is part of the GraphQL Bundle package.
4
 *
5
 *  (c) YnloUltratech <[email protected]>
6
 *
7
 *  For the full copyright and license information, please view the LICENSE
8
 *  file that was distributed with this source code.
9
 ******************************************************************************/
10
11
namespace Ynlo\GraphQLBundle\Exception\Controlled;
12
13
use GraphQL\Error\Error;
14
use Ynlo\GraphQLBundle\Exception\AbstractControlledError;
15
16
class InternalServerError extends AbstractControlledError
17
{
18
    protected $code = 500;
19
20
    protected $message = 'Internal Server Error';
21
22
    protected $description = 'Something is broken. This is usually a temporary error, for example in a high load situation or if an endpoint is temporarily having issues.';
23
24
    /**
25
     * {@inheritDoc}
26
     */
27
    public function getCategory()
28
    {
29
        return Error::CATEGORY_INTERNAL;
30
    }
31
}
32