Introduce magic getter to correct fatal error introduced in 246be76c when visibility was added to class properties