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