Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 3
CRAP
0.00% covered (danger)
0.00%
0 / 1
Product_Response
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 3
12
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_status
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_product
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3// {
4// "status": "ok",
5// "product": {
6// "software": 1,
7// "software_type": "plugin",
8// "allow_staging": "yes",
9// "renewal_period": "annual",
10// "software_slug": "a-plugin",
11// "version": "",
12// "author": "",
13// "required_wp": "",
14// "compatible_to": "",
15// "updated": "",
16// "activations": "1",
17// "staging_activations": "3",
18// "description": "",
19// "change_log": "",
20// "installation": "",
21// "documentation_link": "",
22// "banner_low": "",
23// "banner_high": "",
24// "update_file_id": "40bb2001-48c3-4633-995a-447aa82b491d",
25// "update_file_url": "https:\/\/updatestest.bhwp.ie\/wp-content\/uploads\/woocommerce_uploads\/2024\/05\/bh-wp-autologin-urls.2.3.0-alozbb.zip",
26// "update_file_name": "bh-wp-autologin-urls.2.3.0-alozbb.zip",
27// "update_file": {
28// "id": "40bb2001-48c3-4633-995a-447aa82b491d",
29// "file": "https:\/\/updatestest.bhwp.ie\/wp-content\/uploads\/woocommerce_uploads\/2024\/05\/bh-wp-autologin-urls.2.3.0-alozbb.zip",
30// "name": "bh-wp-autologin-urls.2.3.0-alozbb.zip"
31// },
32// "thumbnail": false
33// }
34// }
35
36namespace BrianHenryIE\WP_Plugin_Updater\Integrations\SLSWC\Model;
37
38class Product_Response {
39
40    public function __construct(
41        protected string $status,
42        protected Product $product
43    ) {
44    }
45
46    public function get_status(): string {
47        return $this->status;
48    }
49
50    public function get_product(): Product {
51        return $this->product;
52    }
53}