protected function buildMethodsInterceptorCode($targetClassName, array $interceptedMethods)
{
foreach ($interceptedMethods as $methodName => $methodMetaInformation) {
if (count($methodMetaInformation['groupedAdvices']) === 0) {
throw new Aop\Exception\VoidImplementationException(sprintf('Refuse to introduce method %s into target class %s because it has no implementation code. You might want to create an around advice which implements this method.', $methodName, $targetClassName), 1303224472);
}
$builderType = 'Adviced' . ($methodName === '__construct' ? 'Constructor' : 'Method');
$this->methodInterceptorBuilders[$builderType]->build($methodName, $interceptedMethods, $targetClassName);
}
}