protected function validateModelArgument() : void
    {
        $model = $this->getInput()->getArgument('model');

        $validator = Validator::create()
            ->string()
            ->alphaNumeric()
            ->noWhitespace();

        if ($this->getDefinition()->getArgument('model')->isRequired()
            && !$validator->validate($model)) {
            throw new InputException($validator->getError());
        }
    }
protected function validateModelArgument() : void
    {
        $model = $this->getInput()->getArgument('model');

        $validator = Validator::create()
            ->string()
            ->alphaNumeric()
            ->noWhitespace();

        if ($this->getDefinition()->getArgument('model')->isRequired()
            && !$validator->validate($model)) {
            throw new InputException($validator->getError());
        }
    }
protected function validateModelArgument ( ) : void { $ model = $ this -> getInput ( ) -> getArgument ( 'model' ) ; $ validator = Validator :: create ( ) -> string ( ) -> alphaNumeric ( ) -> noWhitespace ( ) ; if ( $ this -> getDefinition ( ) -> getArgument ( 'model' ) -> isRequired ( ) && ! $ validator -> validate ( $ model ) ) { throw new InputException ( $ validator -> getError ( ) ) ; } }
Validate Model Argument

@return void
@throws \Bluzman\Input\InputException
Validate Model Argument