Passed
Push — feature/add-class-name-finder-... ( 772f7c...098095 )
by Chema
06:37 queued 03:13
created

ClassNameInvalidCandidateFoundEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 12
ccs 2
cts 4
cp 0.5
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A toString() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Gacela\Framework\Event\ClassResolver\ClassNameFinder;
6
7
use Gacela\Framework\Event\GacelaEventInterface;
8
9
final class ClassNameInvalidCandidateFoundEvent implements GacelaEventInterface
10
{
11
    private string $className;
12
13 38
    public function __construct(string $className)
14
    {
15 38
        $this->className = $className;
16
    }
17
18
    public function toString(): string
19
    {
20
        return sprintf('%s - %s', self::class, $this->className);
21
    }
22
}
23