ColonyRegistryException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A aentNotFound() 0 3 1
1
<?php
2
3
namespace TheAentMachine\Aent\Registry\Exception;
4
5
use TheAentMachine\Aent\Exception\AentException;
6
7
final class ColonyRegistryException extends AentException
8
{
9
    /**
10
     * @param string $name
11
     * @return ColonyRegistryException
12
     */
13
    public static function aentNotFound(string $name): self
14
    {
15
        return new self("aent \"$name\" not found!");
16
    }
17
}
18