| Total Complexity | 5 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 85.71% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class ResultFormat { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @var callable |
||
| 11 | */ |
||
| 12 | private $constructionFunction; |
||
| 13 | |||
| 14 | 5 | public function __construct( |
|
| 15 | 5 | private string $name, |
|
| 16 | 5 | private string $nameMessageKey, |
|
| 17 | 5 | private array $parameterDefinitions, |
|
| 18 | 5 | callable $presenterBuilder |
|
| 19 | 5 | ) { |
|
| 20 | $this->constructionFunction = $presenterBuilder; |
||
| 21 | 5 | } |
|
| 22 | 5 | ||
| 23 | public function getName(): string { |
||
| 24 | return $this->name; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getNameMessageKey(): string { |
||
| 29 | 5 | } |
|
| 30 | 5 | ||
| 31 | public function getParameterDefinitions(): array { |
||
| 33 | 4 | } |
|
| 34 | 4 | ||
| 35 | public function buildPresenter(): ResultPresenter { |
||
| 37 | } |
||
| 38 | |||
| 39 | } |
||
| 40 |