PhpSandbox\PHPSandbox::undefineInterfaces PHP Method

undefineInterfaces() public method

You can pass an array of interface names to undefine, or an empty array or null argument to undefine all interfaces
public undefineInterfaces ( array $interfaces = [] )
$interfaces array Array of interface names to undefine. Passing an empty array or no argument will result in undefining all interfaces
    public function undefineInterfaces(array $interfaces = [])
    {
        if (count($interfaces)) {
            foreach ($interfaces as $interface) {
                $this->undefineInterface($interface);
            }
        } else {
            $this->definitions['interfaces'] = [];
        }
        return $this;
    }
PHPSandbox