/**
* Constructs functions stub class from namespace Reflection
*
* @param ReflectionFileNamespace $namespace Reflection of namespace
* @param array $advices List of function advices
*
* @throws \InvalidArgumentException for invalid classes
*/
public function __construct(ReflectionFileNamespace $namespace, array $advices = [])
{
parent::__construct($advices);
$this->namespace = $namespace;
if (empty($advices[AspectContainer::FUNCTION_PREFIX])) {
return;
}
foreach ($advices[AspectContainer::FUNCTION_PREFIX] as $pointName => $value) {
$function = new ReflectionFunction($pointName);
$this->override($function, $this->getJoinpointInvocationBody($function));
}
}