src/Actions/ClassBuilder.php
/**
     * Builds class with injections.
     *
     * @param array $classWithInjections Contains class name and its injections
     *
     * @return array
     */
Builds class with injections.
@param array $classWithInjections Contains class name and its injections

@return array
Builds class with injections . @param array $classWithInjections Contains class name and its injections @return array
private function buildClassWithInjections(array $classWithInjections): array
    {
        [$class, $injectedClasses] = [$classWithInjections['class'], []];
        if (count($classWithInjections) > 1) {
            $class = $classWithInjections['class'];
            $injectedClasses = $classWithInjections['with'];
        }
        $injections = map($injectedClasses, $this->buildInjections());
        return [$class, $injections];
    }
private function buildClassWithInjections ( array $ classWithInjections ) : array { [ $ class , $ injectedClasses ] = [ $ classWithInjections [ 'class' ] , [ ] ] ; if ( count ( $ classWithInjections ) > 1 ) { $ class = $ classWithInjections [ 'class' ] ; $ injectedClasses = $ classWithInjections [ 'with' ] ; } $ injections = map ( $ injectedClasses , $ this -> buildInjections ( ) ) ; return [ $ class , $ injections ] ; }
Builds class with injections.
Builds class with injections .