public function __toString()
{
$c1 = $this->renderReadableSpec();
$return = '';
$return .= sprintf('* key:%-8s spec:%s desc:%s', $this->getId(), $c1, $this->desc) . "\n";
$val = $this->getValue();
if (is_array($val)) {
$return .= ' value => ' . join(',', array_map(function ($v) {
return var_export($v, true);
}, $val)) . "\n";
} else {
$return .= sprintf(' value => %s', $val) . "\n";
}
return $return;
}