| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | public function serialize( AliasGroupList $aliasGroupList ) { |
||
| 45 | $serialization = array(); |
||
| 46 | |||
| 47 | foreach ( $aliasGroupList->getIterator() as $aliasGroup ) { |
||
| 48 | $serialization[$aliasGroup->getLanguageCode()] = $this->aliasGroupSerializer->serialize( $aliasGroup ); |
||
| 49 | } |
||
| 50 | |||
| 51 | if ( $this->useObjectsForMaps ) { |
||
| 52 | $serialization = (object)$serialization; |
||
| 53 | } |
||
| 54 | |||
| 55 | return $serialization; |
||
| 56 | } |
||
| 57 | |||
| 59 |