Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
PathResult | |
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 PathResult |
15 | { |
16 | /** @var string ファイルのフルパス */ |
17 | public readonly string $full; |
18 | /** @var string ファイルのベースディレクトリ */ |
19 | public readonly string $dir; |
20 | /** @var string ファイル名 */ |
21 | public readonly string $file; |
22 | |
23 | /** |
24 | * 新しいオブジェクトを作成します |
25 | * |
26 | * @param string $full ファイルのフルパスを指定します |
27 | * @param string $dir ファイルのベースディレクトリを指定します |
28 | * @param string $file ファイル名を指定します |
29 | */ |
30 | public function __construct(string $full, string $dir, string $file) |
31 | { |
32 | $this->full = $full; |
33 | $this->dir = $dir; |
34 | $this->file = $file; |
35 | } |
36 | } |