';
foreach ($map->describedByArray() as $rowIndex => $row) {
echo '
' . "\n";
foreach ($row as $columnIndex => $column) {
$position = new Position($rowIndex + 1, $columnIndex + 1);
echo '' . $table->getSpotIndexByPosition($position) . ' | ' . "\n";
}
echo '
' . "\n";
}
echo '';
}
catch (\Exception $e) {
// TODO: provide more information, like the file:line for example
echo 'Caught exception: ' . $e->getMessage() . "\n";
}