/**
* Constructor for field access
*
* @param string $className Class name
* @param string $fieldName Field name
* @param $advices 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);
}
}