public function analyze($modelClass)
    {
        $information = new ModelInformation;

        $information->model          = $modelClass;
        $information->original_model = $modelClass;

        $this->makeModelInstance($modelClass);

        foreach ($this->getSteps() as $stepClass) {

            /** @var AnalyzerStepInterface $step */
            $step = app($stepClass);

            $information = $step->setAnalyzer($this)->analyze($information);
        }

        return $information;
    }
public function analyze($modelClass)
    {
        $information = new ModelInformation;

        $information->model          = $modelClass;
        $information->original_model = $modelClass;

        $this->makeModelInstance($modelClass);

        foreach ($this->getSteps() as $stepClass) {

            /** @var AnalyzerStepInterface $step */
            $step = app($stepClass);

            $information = $step->setAnalyzer($this)->analyze($information);
        }

        return $information;
    }
public function analyze ( $ modelClass ) { $ information = new ModelInformation ; $ information -> model = $ modelClass ; $ information -> original_model = $ modelClass ; $ this -> makeModelInstance ( $ modelClass ) ; foreach ( $ this -> getSteps ( ) as $ stepClass ) { /** @var AnalyzerStepInterface $step */ $ step = app ( $ stepClass ) ; $ information = $ step -> setAnalyzer ( $ this ) -> analyze ( $ information ) ; } return $ information ; }
Analyzes a model and returns normalized information about it.

@param string $modelClass FQN of model to analyze
@return ModelInformationInterface
Analyzes a model and returns normalized information about it .