Passed
Push — feature/custom-services-v2 ( 14ad97...35de26 )
by Chema
03:35
created

MissingClassDefinitionException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 9
rs 10
ccs 0
cts 2
cp 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A missingDefinition() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Gacela\Framework\ClassResolver\DocBlockService;
6
7
use RuntimeException;
8
9
final class MissingClassDefinitionException extends RuntimeException
10
{
11
    public static function missingDefinition(string $className, string $method, string $found): self
12
    {
13
        return new self("
14
Missing the concrete return type for the method `{$method}()` (Found: `{$found}`).
15
Either fully-qualified or relative namespace are fine.
16
Did you forget to add the namespace as DocBlock for the class?
17
  Class -> `{$className}`
18
");
19
    }
20
}
21