src/Cubes/Cube.php
public static function setInstance($args)
    {
        $name = array_shift($args);

        $name = self::getAccessor($name);

        $reflect = new \ReflectionClass($name);

        return $reflect->newInstanceArgs($args);
    }
public static function setInstance($args)
    {
        $name = array_shift($args);

        $name = self::getAccessor($name);

        $reflect = new \ReflectionClass($name);

        return $reflect->newInstanceArgs($args);
    }
public static function setInstance ( $ args ) { $ name = array_shift ( $ args ) ; $ name = self :: getAccessor ( $ name ) ; $ reflect = new \ ReflectionClass ( $ name ) ; return $ reflect -> newInstanceArgs ( $ args ) ; }
Set Instance.

@param string $name

@return mixed
Set Instance .