src/Actions/ClassBuilder.php
/**
     * Checks if the specified class is mocked.
     *
     * @param string $class      Class name to be checked
     * @param array  $injections The list of injections for this class
     *
     * @return mixed
     */
Checks if the specified class is mocked.
@param string $class      Class name to be checked
@param array  $injections The list of injections for this class

@return mixed
Checks if the specified class is mocked . @param string $class Class name to be checked @param array $injections The list of injections for this class @return mixed
private function checkIfInstanceIsSet(string $class, array $injections)
    {
        if (isset(self::$instances[$class]) === true) {
            return self::$instances[$class];
        }
        return new $class(...$injections);
    }
private function checkIfInstanceIsSet ( string $ class , array $ injections ) { if ( isset ( self :: $ instances [ $ class ] ) === true ) { return self :: $ instances [ $ class ] ; } return new $ class ( ... $ injections ) ; }
Checks if the specified class is mocked.
Checks if the specified class is mocked .