protected function map_site_information( $site_information ) {
return (object) [
'url' => 'yoast.com',
'subscriptions' => array_map( [ $this, 'map_subscription' ], $site_information->subscriptions ),
];
}
protected function map_subscription( $subscription ) {
return (object) [
'renewal_url' => 'yoast.com',
'expiry_date' => '01/01/2030',
'product' => (object) [
'version' => '21.3',
'name' => 'Yoast SEO Premium',
'slug' => 'wordpress-seo-premium',
'last_updated' => '10/05/2023',
'store_url' => 'yoast.com',
'download' => 'yoast.com',
'changelog' => 'yoast.com',
],
];
}