public function getBuildingType($nodeData, Building $building) { $nodeData['type'] = $building->getType(); return $nodeData; }