private function ProxyGenerator::getParameterNamesForParentCall in Plug 7
Parameters
\ReflectionParameter[] $parameters:
Return value
string[]
1 call to ProxyGenerator::getParameterNamesForParentCall()
- ProxyGenerator::generateMethods in lib/
doctrine/ common/ lib/ Doctrine/ Common/ Proxy/ ProxyGenerator.php - Generates decorated methods by picking those available in the parent class.
File
- lib/
doctrine/ common/ lib/ Doctrine/ Common/ Proxy/ ProxyGenerator.php, line 986
Class
- ProxyGenerator
- This factory is used to generate proxy classes. It builds proxies from given parameters, a template and class metadata.
Namespace
Doctrine\Common\ProxyCode
private function getParameterNamesForParentCall(array $parameters) {
return array_map(function (\ReflectionParameter $parameter) {
$name = '';
if (method_exists($parameter, 'isVariadic')) {
if ($parameter
->isVariadic()) {
$name .= '...';
}
}
$name .= '$' . $parameter
->getName();
return $name;
}, $parameters);
}