protected function initDependenciesById($id)
    {
        // Create an entry array if not already created (lazy init)
        if (false === isset($this->dependenciesById[$id])) {
            $this->dependenciesById[$id] = [];
        }
    }
protected function initDependenciesById($id)
    {
        // Create an entry array if not already created (lazy init)
        if (false === isset($this->dependenciesById[$id])) {
            $this->dependenciesById[$id] = [];
        }
    }
protected function initDependenciesById ( $ id ) { // Create an entry array if not already created (lazy init) if ( false === isset ( $ this -> dependenciesById [ $ id ] ) ) { $ this -> dependenciesById [ $ id ] = [ ] ; } }
Initializes the index by id.

@param string $id The id of the dependency

@author Benjamin Carl <opensource@clickalicious.de>
Initializes the index by id .