Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| NamespaceResult | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * @license MIT |
| 5 | * @author hazuki3417<hazuki3417@gmail.com> |
| 6 | * @copyright 2023 hazuki3417 all rights reserved. |
| 7 | */ |
| 8 | |
| 9 | namespace Selen\PSR4\Generator\Result; |
| 10 | |
| 11 | /** |
| 12 | * 名前空間の情報を保持するクラスです |
| 13 | */ |
| 14 | class NamespaceResult |
| 15 | { |
| 16 | /** @var string 名前空間のフルパス */ |
| 17 | public readonly string $full; |
| 18 | /** @var string 名前空間のベースパス */ |
| 19 | public readonly string $base; |
| 20 | /** @var string クラス名 */ |
| 21 | public readonly string $class; |
| 22 | |
| 23 | /** |
| 24 | * 新しいオブジェクトを作成します |
| 25 | * |
| 26 | * @param string $full 名前空間のフルパスを指定します |
| 27 | * @param string $base 名前空間のベースパスを指定します |
| 28 | * @param string $class クラス名を指定します |
| 29 | */ |
| 30 | public function __construct(string $full, string $base, string $class) |
| 31 | { |
| 32 | $this->full = $full; |
| 33 | $this->base = $base; |
| 34 | $this->class = $class; |
| 35 | } |
| 36 | } |