public function enrich(ModelInformationInterface $info, $allInformation = null)
    {
        $this->info = $info;
        $class = $this->info->modelClass();
        $this->model = new $class;

        $this->allInfo = $allInformation;

        $this->performEnrichment();

        return $this->info;
    }
public function enrich(ModelInformationInterface $info, $allInformation = null)
    {
        $this->info = $info;
        $class = $this->info->modelClass();
        $this->model = new $class;

        $this->allInfo = $allInformation;

        $this->performEnrichment();

        return $this->info;
    }
public function enrich ( ModelInformationInterface $ info , $ allInformation = null ) { $ this -> info = $ info ; $ class = $ this -> info -> modelClass ( ) ; $ this -> model = new $ class ; $ this -> allInfo = $ allInformation ; $ this -> performEnrichment ( ) ; return $ this -> info ; }
Performs enrichment on model information.

Optionally takes all model information known as context.

@param ModelInformationInterface|ModelInformation                     $info
@param Collection|ModelInformationInterface[]|ModelInformation[]|null $allInformation
@return ModelInformationInterface|ModelInformation
Performs enrichment on model information .