private function determineScalar($type)
{
$synonyms = ["int" => "integer", "float" => "double", "bool" => "boolean"];
if (array_key_exists($type, $synonyms)) {
$type = $synonyms[$type];
}
$types = ["string", "integer", "double", "boolean"];
return in_array($type, $types) ? $type : null;
}