Neos\Kickstarter\Command\KickstartCommandController::validateModelName PHP Method

validateModelName() protected method

Check the given model name to be not one of the reserved words of PHP.
See also: http://www.php.net/manual/en/reserved.keywords.php
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);
        }
    }