protected function getModelReflection()
    {
        $modelClassName = str_replace('/', '\\', $this->input->getArgument('model'));

        try {
            $reflection = new ReflectionClass($this->getAppNamespace() . $modelClassName);
        } catch (\ReflectionException $e) {
            $reflection = new ReflectionClass($modelClassName);
        }

        if (!$reflection->isSubclassOf(Model::class) || !$reflection->isInstantiable()) {
            throw new NotAnInstanceOfException(sprintf('The model must be an instance of [%s]', Model::class));
        }

        return $reflection;
    }
protected function getModelReflection()
    {
        $modelClassName = str_replace('/', '\\', $this->input->getArgument('model'));

        try {
            $reflection = new ReflectionClass($this->getAppNamespace() . $modelClassName);
        } catch (\ReflectionException $e) {
            $reflection = new ReflectionClass($modelClassName);
        }

        if (!$reflection->isSubclassOf(Model::class) || !$reflection->isInstantiable()) {
            throw new NotAnInstanceOfException(sprintf('The model must be an instance of [%s]', Model::class));
        }

        return $reflection;
    }
protected function getModelReflection ( ) { $ modelClassName = str_replace ( '/' , '\\' , $ this -> input -> getArgument ( 'model' ) ) ; try { $ reflection = new ReflectionClass ( $ this -> getAppNamespace ( ) . $ modelClassName ) ; } catch ( \ ReflectionException $ e ) { $ reflection = new ReflectionClass ( $ modelClassName ) ; } if ( ! $ reflection -> isSubclassOf ( Model :: class ) || ! $ reflection -> isInstantiable ( ) ) { throw new NotAnInstanceOfException ( sprintf ( 'The model must be an instance of [%s]' , Model :: class ) ) ; } return $ reflection ; }
Get the model class name.

@return ReflectionClass
@throws \VTalbot\RepositoryGenerator\Exceptions\NotAnInstanceOfException
Get the model class name .