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
TemplateOptions
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\Mvc\Template;
6
7use PeServer\Core\ProgramContext;
8use PeServer\Core\Web\IUrlHelper;
9use PeServer\Core\Web\WebSecurity;
10
11/**
12 * テンプレート生成設定。
13 * TODO: #26 で対応するの忘れてる, いまどうこうする気がないので塩漬けしたい
14 */
15class TemplateOptions
16{
17    /**
18     * 生成。
19     *
20     * 注釈の元になるパス: `__DIR__\template\base\template.tpl`
21     *
22     * @param string $rootDirectoryPath テンプレートファイル配置ディレクトリのルートパス。(※ `__DIR__\template`)
23     * @param string $baseDirectoryName テンプレートファイルベースディレクトリの名前。(※ `name`)
24     * @param IUrlHelper $urlHelper URLベースパス
25     * @param WebSecurity $webSecurity
26     * @param string $temporaryDirectoryPath 一時ディレクトリパス。テンプレートエンジンによりけりだけどコンパイル結果とかキャッシュとかを配置する親元。
27     */
28    public function __construct(
29        public string $rootDirectoryPath,
30        public string $baseDirectoryName,
31        public ProgramContext $programContext,
32        public IUrlHelper $urlHelper,
33        public WebSecurity $webSecurity,
34        public string $temporaryDirectoryPath
35    ) {
36    }
37}