Go\Aop\Framework\ClassFieldAccess::__construct PHP Method

__construct() public method

Constructor for field access
public __construct ( string $className, string $fieldName, array $advices )
$className string Class name
$fieldName string Field name
$advices array array List of advices for this invocation
    public function __construct($className, $fieldName, array $advices)
    {
        parent::__construct($advices);
        $this->reflectionProperty = $reflectionProperty = new ReflectionProperty($className, $fieldName);
        // Give an access to protected field
        if ($reflectionProperty->isProtected()) {
            $reflectionProperty->setAccessible(true);
        }
    }