NoDependencyStatuses   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 16
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Cushon\HealthBundle\ApplicationHealth\HealthReport\Exception;
6
7
use InvalidArgumentException;
8
9
final class NoDependencyStatuses extends InvalidArgumentException
10
{
11
    /**
12
     * Use the code of one of the Zeroid Sergeant Major Zero.
13
     * @see https://en.wikipedia.org/wiki/Terrahawks#Characters
14
     */
15
    public const ERROR_CODE = 0;
16
17
    /**
18
     * @return static
19
     */
20
    public static function create(): self
21
    {
22
        return new self(
23
            'A Health Report must have at least one dependency report',
24
            self::ERROR_CODE
25
        );
26
    }
27
}
28