src/Modules/ModuleManager.php
protected function populateAssociatedClassIndex()
    {
        $this->associatedClassIndex = [];

        foreach ($this->modules as $module) {

            if (    ! $module->getAssociatedClass()
                ||  array_key_exists('', $this->associatedClassIndex)
            ) {
                continue;
            }

            $this->associatedClassIndex[ $module->getAssociatedClass() ] = $module->getKey();
        }

        return $this;
    }
protected function populateAssociatedClassIndex()
    {
        $this->associatedClassIndex = [];

        foreach ($this->modules as $module) {

            if (    ! $module->getAssociatedClass()
                ||  array_key_exists('', $this->associatedClassIndex)
            ) {
                continue;
            }

            $this->associatedClassIndex[ $module->getAssociatedClass() ] = $module->getKey();
        }

        return $this;
    }
protected function populateAssociatedClassIndex ( ) { $ this -> associatedClassIndex = [ ] ; foreach ( $ this -> modules as $ module ) { if ( ! $ module -> getAssociatedClass ( ) || array_key_exists ( '' , $ this -> associatedClassIndex ) ) { continue ; } $ this -> associatedClassIndex [ $ module -> getAssociatedClass ( ) ] = $ module -> getKey ( ) ; } return $ this ; }
Populates the index by which modules may be looked up by associated class.

@return $this
Populates the index by which modules may be looked up by associated class .