public function efferentCoupling(DependencyMap $map) : array
    {
        return $map->reduce([], function (array $efferent, Dependency $from, Dependency $to) use ($map) {
            $efferent[$from->toString()] = $map->get($from)->count();
            return $efferent;
        });
    }
public function efferentCoupling(DependencyMap $map) : array
    {
        return $map->reduce([], function (array $efferent, Dependency $from, Dependency $to) use ($map) {
            $efferent[$from->toString()] = $map->get($from)->count();
            return $efferent;
        });
    }
public function efferentCoupling ( DependencyMap $ map ) : array { return $ map -> reduce ( [ ] , function ( array $ efferent , Dependency $ from , Dependency $ to ) use ( $ map ) { $ efferent [ $ from -> toString ( ) ] = $ map -> get ( $ from ) -> count ( ) ; return $ efferent ; } ) ; }
Efferent coupling is an indicator for how independent a package is.

@param DependencyMap $map

@return array
Efferent coupling is an indicator for how independent a package is .