1 | <?php |
||
9 | abstract class Builder |
||
10 | { |
||
11 | /** |
||
12 | * @var \Illuminate\Http\Request |
||
13 | */ |
||
14 | protected $request; |
||
15 | |||
16 | /** |
||
17 | * @var \ArinaSystems\JsonResponse\Option |
||
18 | */ |
||
19 | protected $options; |
||
20 | |||
21 | /** |
||
22 | * @var \ArinaSystems\JsonResponse\Attribute |
||
23 | */ |
||
24 | protected $attributes; |
||
25 | |||
26 | /** |
||
27 | * Create a new instance. |
||
28 | * |
||
29 | * @param \ArinaSystems\JsonResponse\Option $options |
||
30 | * @param \ArinaSystems\JsonResponse\Attribute $attributes |
||
31 | */ |
||
32 | public function __construct(Option $options, Attribute $attributes) |
||
38 | |||
39 | /** |
||
40 | * Build a value of the attribute. |
||
41 | * |
||
42 | * @return mixed |
||
43 | */ |
||
44 | abstract public function build($value); |
||
45 | } |
||
46 |