protected function collectRawModels()
    {
        foreach ($this->modelClasses as $class) {

            $key = $this->moduleHelper->modelInformationKeyForModel($class);

            try {
                $this->information->put($key, $this->modelAnalyzer->analyze($class));

            } catch (\Exception $e) {

                // Wrap and decorate exceptions so it is easier to track the problem source
                throw (new ModelInformationCollectionException(
                    "Issue analyzing model {$class}: \n{$e->getMessage()}",
                    (int) $e->getCode(),
                    $e
                ))
                    ->setModelClass($class);
            }
        }

        return $this;
    }
protected function collectRawModels()
    {
        foreach ($this->modelClasses as $class) {

            $key = $this->moduleHelper->modelInformationKeyForModel($class);

            try {
                $this->information->put($key, $this->modelAnalyzer->analyze($class));

            } catch (\Exception $e) {

                // Wrap and decorate exceptions so it is easier to track the problem source
                throw (new ModelInformationCollectionException(
                    "Issue analyzing model {$class}: \n{$e->getMessage()}",
                    (int) $e->getCode(),
                    $e
                ))
                    ->setModelClass($class);
            }
        }

        return $this;
    }
protected function collectRawModels ( ) { foreach ( $ this -> modelClasses as $ class ) { $ key = $ this -> moduleHelper -> modelInformationKeyForModel ( $ class ) ; try { $ this -> information -> put ( $ key , $ this -> modelAnalyzer -> analyze ( $ class ) ) ; } catch ( \ Exception $ e ) { // Wrap and decorate exceptions so it is easier to track the problem source throw ( new ModelInformationCollectionException ( "Issue analyzing model {$class}: \n{$e->getMessage()}" , ( int ) $ e -> getCode ( ) , $ e ) ) -> setModelClass ( $ class ) ; } } return $ this ; }
Collects information about config-defined app model classes.

@return $this
@throws ModelInformationCollectionException
Collects information about config - defined app model classes .