src/Plugin/Double.php
protected static function _generateParameters($method)
    {
        $params = [];
        foreach ($method->getParameters() as $num => $parameter) {
            $name = $parameter->getName();
            $name = ($name && $name !== '...') ? $name : 'param' . $num;
            $params[] = "\${$name}";
        }
        return join(', ', $params);
    }
protected static function _generateParameters($method)
    {
        $params = [];
        foreach ($method->getParameters() as $num => $parameter) {
            $name = $parameter->getName();
            $name = ($name && $name !== '...') ? $name : 'param' . $num;
            $params[] = "\${$name}";
        }
        return join(', ', $params);
    }
protected static function _generateParameters ( $ method ) { $ params = [ ] ; foreach ( $ method -> getParameters ( ) as $ num => $ parameter ) { $ name = $ parameter -> getName ( ) ; $ name = ( $ name && $ name !== '...' ) ? $ name : 'param' . $ num ; $ params [ ] = "\${$name}" ; } return join ( ', ' , $ params ) ; }
Creates a parameters list from a `ReflectionMethod` instance.

@param  object $method A instance of `ReflectionMethod`.
@return string         The parameters definition list.
Creates a parameters list from a ReflectionMethod instance .