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
StartupOptions
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 StartupOptions
11{
12    /**
13     * 生成。
14     *
15     * @param string $root アプリケーションのルートディレクトリ($HOME/app とか)。
16     * @param string $public $homeから見た公開ディレクトリ相対パス。(Webアプリとして使用しない場合は空)。
17     * @param bool $errorHandling エラーハンドリングを設定するか。テストで制御する目的のため原則未指定で良い。
18     */
19    public function __construct(
20        public string $root,
21        public string $public,
22        public bool $errorHandling = true,
23    ) {
24    }
25}