PHP objects for API response types