Completed
Push — master ( abe227...316baf )
by Raffael
13:55 queued 08:01
created

NotUnique   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 10
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getStatusCode() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * tubee.io
7
 *
8
 * @copyright   Copryright (c) 2017-2019 gyselroth GmbH (https://gyselroth.com)
9
 * @license     GPL-3.0 https://opensource.org/licenses/GPL-3.0
10
 */
11
12
namespace Tubee\DataObject\Exception;
13
14
use Tubee\Rest\Exception\ExceptionInterface;
15
16
class NotUnique extends \Tubee\Exception implements ExceptionInterface
17
{
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function getStatusCode(): int
22
    {
23
        return 422;
24
    }
25
}
26