Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class ServiceResourceBuilder |
||
12 | { |
||
13 | private $request; |
||
14 | private $errors = []; |
||
15 | |||
16 | public function __construct(Request $request) |
||
17 | { |
||
18 | $this->request = $request; |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * Add errors to the stack. |
||
23 | * |
||
24 | * @param Error ...$errors |
||
25 | * |
||
26 | * @return ServiceResourceBuilder |
||
27 | */ |
||
28 | public function addError(Error ...$errors): self |
||
33 | } |
||
34 | |||
35 | public function build(): Service |
||
40 | } |
||
41 | } |
||
42 |