public function convertArrayToString($array)
{
$string = '[';
foreach ($array as $name => $properties) {
$string .= '[';
$string .= "'name' => '" . $name . "',";
$string .= "'properties' => [";
foreach ($properties as $property) {
$string .= "'" . $property . "', ";
}
$string = rtrim($string, ', ');
$string .= ']';
$string .= '],';
}
$string = rtrim($string, ',');
$string .= ']';
return $string;
}