public static function hijackProperty($object, $propertyName, $newValue) { $closure = (new ClosureHelper())->getPropertyAccessor($propertyName, $newValue); Utils::bindAndCall($closure, $object); }