src/Plugin/Double.php
protected static function _generateInterfaceMethods($interfaces, $mask = 255)
    {
        if (!$interfaces) {
            return [];
        }
        $result = [];
        foreach ((array) $interfaces as $interface) {
            if (!interface_exists($interface)) {
                throw new MissingImplementationException("Unexisting interface `{$interface}`");
            }
            $reflection = Inspector::inspect($interface);
            $methods = $reflection->getMethods($mask);
            foreach ($methods as $method) {
                $result[$method->getName()] = static::_generateMethod($method);
            }
        }
        return $result;
    }
protected static function _generateInterfaceMethods($interfaces, $mask = 255)
    {
        if (!$interfaces) {
            return [];
        }
        $result = [];
        foreach ((array) $interfaces as $interface) {
            if (!interface_exists($interface)) {
                throw new MissingImplementationException("Unexisting interface `{$interface}`");
            }
            $reflection = Inspector::inspect($interface);
            $methods = $reflection->getMethods($mask);
            foreach ($methods as $method) {
                $result[$method->getName()] = static::_generateMethod($method);
            }
        }
        return $result;
    }
protected static function _generateInterfaceMethods ( $ interfaces , $ mask = 255 ) { if ( ! $ interfaces ) { return [ ] ; } $ result = [ ] ; foreach ( ( array ) $ interfaces as $ interface ) { if ( ! interface_exists ( $ interface ) ) { throw new MissingImplementationException ( "Unexisting interface `{$interface}`" ) ; } $ reflection = Inspector :: inspect ( $ interface ) ; $ methods = $ reflection -> getMethods ( $ mask ) ; foreach ( $ methods as $ method ) { $ result [ $ method -> getName ( ) ] = static :: _generateMethod ( $ method ) ; } } return $ result ; }
Creates method definitions from an interface array.

@param  array   $interfaces A array on interfaces.
@param  integer $mask       The method mask to filter.
@return array               The generated methods.
Creates method definitions from an interface array .