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

missingDefinition()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 7
rs 10
ccs 0
cts 2
cp 0
crap 2
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