1 | <?php |
||
7 | class ResultFormatRegistrator { |
||
8 | |||
9 | private $registry; |
||
10 | |||
11 | private $name; |
||
12 | private $nameMessageKey; |
||
13 | private $parameterDefinitions; |
||
14 | private $constructionFunction; |
||
15 | |||
16 | 5 | public function __construct( callable $registry ) { |
|
19 | |||
20 | 5 | public function withName( string $name ): self { |
|
24 | |||
25 | 5 | public function andMessageKey( string $nameMessageKey ): self { |
|
29 | |||
30 | 5 | public function andParameterDefinitions( array $parameterDefinitions ): self { |
|
34 | |||
35 | 5 | public function andPresenterBuilder( callable $constructionFunction ): self { |
|
39 | |||
40 | 5 | public function register() { |
|
43 | |||
44 | 5 | private function newResultFormat(): ResultFormat { |
|
52 | |||
53 | } |
||
54 |