1 | <?php |
||
7 | class AuthorListNormalizer implements DenormalizerInterface |
||
8 | { |
||
9 | const KEY_NAME = 'name'; |
||
10 | const KEY_EMAIL = 'email'; |
||
11 | const KEY_ROLE = 'role'; |
||
12 | |||
13 | /** |
||
14 | * @param Author[] $authorList |
||
15 | * |
||
16 | * @return array |
||
17 | */ |
||
18 | 1 | public function normalize(array $authorList) |
|
34 | |||
35 | /** |
||
36 | * @param array $authorList |
||
37 | * |
||
38 | * @return Author[] |
||
39 | */ |
||
40 | 2 | public function denormalize(array $authorList) |
|
53 | } |
||
54 |