| 1 | <?php |
||
| 14 | class Context extends Collector implements StartCollectorInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Fetch data |
||
| 18 | * @return mixed |
||
| 19 | */ |
||
| 20 | 4 | public function resolve() |
|
| 31 | |||
| 32 | 6 | public function getDataFields() |
|
| 38 | |||
| 39 | /** |
||
| 40 | * The path in the final json |
||
| 41 | * @example |
||
| 42 | * path /aa/bb |
||
| 43 | * will be transformed to |
||
| 44 | * { |
||
| 45 | * aa : { |
||
| 46 | * bb: <VALUE OF RESOLVE> |
||
| 47 | * } |
||
| 48 | * } |
||
| 49 | * @return mixed |
||
| 50 | */ |
||
| 51 | 2 | public function getPath() |
|
| 55 | } |
||
| 56 |