private function createSchemaForValidation($schema)
{
$validator = '';
if (is_array($schema)) {
foreach ($schema as $s) {
$validator .= "'" . $s['name'] . "' => '";
#deal with the different format of the console
if (isset($s['arguments'][0]) && $s['arguments'][0] != null) {
$validator .= str_replace(")", "", str_replace("(", ":", $s['arguments'][0]));
$validator .= "',\n\t\t\t";
}
}
return $validator;
}
}