private function normalizeLocationData(LocationData $locationData)
    {
        return [
            'id' => $locationData->getId(),
            'name' => $locationData->getName(),
            'code' => $locationData->getCode(),
            'type' => $locationData->getType(),
        ];
    }
private function normalizeLocationData(LocationData $locationData)
    {
        return [
            'id' => $locationData->getId(),
            'name' => $locationData->getName(),
            'code' => $locationData->getCode(),
            'type' => $locationData->getType(),
        ];
    }
private function normalizeLocationData ( LocationData $ locationData ) { return [ 'id' => $ locationData -> getId ( ) , 'name' => $ locationData -> getName ( ) , 'code' => $ locationData -> getCode ( ) , 'type' => $ locationData -> getType ( ) , ] ; }
Normalize LocationData object to be json encoded.

@param LocationData $locationData Location data

@return array Data normalized
Normalize LocationData object to be json encoded .