private validateInputVars ( array $input ) : boolean | ||
$input | array | |
리턴 | boolean |
private function validateInputVars($input)
{
if (isset($input['template']['vars'])) {
foreach ($input['template']['vars'] as $var) {
if ($var['varName'] == '' || $var['classPath'] == '' || $var['methodName'] == '') {
$this->errors = ['Var Name, Class Path and Method Name required'];
return false;
}
}
}
return true;
}