Lines
100.00%
2 / 2
Functions and Methods
100.00%
2 / 2
Classes and Traits
100.00%
1 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| UnmatchedEntitySelector | 100.00% | 2 / 2 | 100.00% | 2 / 2 | 2 | 100.00% | 1 / 1 | |||
| __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | |||||
| describeWarning | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Codegen\Entity; | |
| 6 | ||
| 7 | use Stewart\Codegen\Model\GenerationWarning; | |
| 8 | ||
| 9 | final readonly class UnmatchedEntitySelector implements GenerationWarning | |
| 10 | { | |
| 11 | public function __construct(public string $pattern) {} | |
| 12 | ||
| 13 | public function describeWarning(): string | |
| 14 | { | |
| 15 | return \sprintf('The codegen include %s matches no entity.', $this->pattern); | |
| 16 | } | |
| 17 | } |