PhpSandbox\PHPSandbox::getSandbox PHP Méthode

getSandbox() public static méthode

Get a named PHPSandbox instance (used to retrieve the sandbox instance from within sandboxed code)
public static getSandbox ( string $name ) : null | PHPSandbox
$name string The name of the PHPSandbox instance to retrieve
Résultat null | PHPSandbox
    public static function getSandbox($name)
    {
        return isset(static::$sandboxes[$name]) ? static::$sandboxes[$name] : null;
    }
PHPSandbox