normalizeValue($object->$getter()); } return array_filter($array); } public function normalizeValue($value) { if (is_array($value) || $value instanceof Traversable || $value instanceof ArrayAccess) { $values = array(); foreach ($value as $v) { $values[] = (string) $v; } $value = implode(', ', $values); } return (string) $value; } }