protected validateModelName ( string $modelName ) : boolean | ||
$modelName | string | |
return | boolean |
protected function validateModelName($modelName)
{
if (Validation::isReservedKeyword($modelName)) {
$this->outputLine('The name of the model cannot be one of the reserved words of PHP!');
$this->outputLine('Have a look at: http://www.php.net/manual/en/reserved.keywords.php');
exit(3);
}
}