Shopware\PluginCreator\Command\CreatePluginCommand::validateModel PHP Method

validateModel() public method

Check the entered model (check might be somewhat more sufisticated)
public validateModel ( $input ) : mixed
$input
return mixed
    public function validateModel($input)
    {
        if (empty($input)) {
            throw new \InvalidArgumentException('You need to enter a model name like »Shopware\\Models\\Article\\Article«');
        }
        return $input;
    }