1 | <?php |
||
13 | class ProjectTransformer extends BaseTransformer |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * Supported index names returned by the Gerrie API. |
||
18 | * |
||
19 | * @var array |
||
20 | */ |
||
21 | protected $supportedKeys = [ |
||
22 | 'id', |
||
23 | // _name is a self added key by Gerrie. This is not a key received by the Gerrit API! |
||
24 | '_name', |
||
25 | 'description', |
||
26 | 'parent', |
||
27 | 'kind', |
||
28 | 'state' |
||
29 | ]; |
||
30 | |||
31 | /** |
||
32 | * Transforms the data into one unique format |
||
33 | * |
||
34 | * @return array |
||
35 | */ |
||
36 | public function transform() |
||
51 | } |