Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
ProgramContext
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace PeServer\Core;
6
7/**
8 * パス設定的な。
9 */
10readonly class ProgramContext
11{
12    /**
13     * 生成。
14     *
15     * @param string $rootDirectory ルートディレクトリ。
16     * @param string $applicationDirectory アプリケーションディレクトリ。`PeServer\*` を指すアプリコードの格納ルートディレクトリ。
17     * @param string $publicDirectory 公開ディレクトリ。Webルート。
18     */
19    public function __construct(
20        public string $rootDirectory,
21        public string $applicationDirectory,
22        public string $publicDirectory,
23    ) {
24    }
25}