/** * Property interceptor can intercept an access to the public and protected properties * * Be aware, it's very tricky and will not work for indirect modification, such as array_pop($this->property); */class PropertyInterceptorAspect implements Aspect{

if ($isRead) {// if you want to change original property value, then return it by reference$value = /* & */$fieldAccess->getValue(); } else {// if you want to change value to set, then return it by reference$value = /* & */$fieldAccess->getValueToSet(); }