Lines
0.00%
0 / 2
Functions and Methods
0.00%
0 / 2
Classes and Traits
0.00%
0 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| GenerationTarget | 0.00% | 0 / 2 | 0.00% | 0 / 2 | 6 | 0.00% | 0 / 1 | |||
| __construct | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | |||||
| classFor | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Codegen; | |
| 6 | ||
| 7 | final readonly class GenerationTarget | |
| 8 | { | |
| 9 | public function __construct( | |
| 10 | public string $namespace, | |
| 11 | public string $directory, | |
| 12 | ) {} | |
| 13 | ||
| 14 | public function classFor(string $shortName): string | |
| 15 | { | |
| 16 | return $this->namespace . '\\' . $shortName; | |
| 17 | } | |
| 18 | } |