You are here

private function ProxyGenerator::getParameterNamesForParentCall in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php \Doctrine\Common\Proxy\ProxyGenerator::getParameterNamesForParentCall()

Parameters

\ReflectionParameter[] $parameters:

Return value

string[]

1 call to ProxyGenerator::getParameterNamesForParentCall()
ProxyGenerator::generateMethods in vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php
Generates decorated methods by picking those available in the parent class.

File

vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php, line 987

Class

ProxyGenerator
This factory is used to generate proxy classes. It builds proxies from given parameters, a template and class metadata.

Namespace

Doctrine\Common\Proxy

Code

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);
}