Go\Proxy\FunctionProxy::__construct PHP Метод

__construct() публичный Метод

Constructs functions stub class from namespace Reflection
public __construct ( Go\ParserReflection\ReflectionFileNamespace $namespace, array $advices = [] )
$namespace Go\ParserReflection\ReflectionFileNamespace Reflection of namespace
$advices array List of function advices
    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));
        }
    }