if you implement the ArrayAccess interface you can add any sort of getters to such a class