private function formatThing(Thing $thing) { return array('reference' => 't:' . $thing->getReference(), 'x' => $thing->getPosition()->x, 'y' => $thing->getPosition()->y, 'code' => $thing->getName()); }