array(
'name' => 'street',
'value' => function ($data) {
$output = "";
if ($data->street instanceof Street) {
$output .= $data->street->Street;
if ($data->street->town instanceof Town) {
$output .= "," . $data->street->town->Town;
}
}
return $output;
},
),