Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 5
CRAP
0.00% covered (danger)
0.00%
0 / 1
Check_Updates_Response
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 5
30
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_slug
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_message
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_software_details
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3// {
4// "status": "active",
5// "slug": "example-plugin",
6// "message": "License Valid",
7// "software_details": {
8// "name": "example-plugin",
9// "id": "3",
10// "slug": "example-plugin",
11// "plugin": "example-plugin",
12// "version": "1.2.0",
13// "last_updated": "2024-06-11 02:33:17",
14// "homepage": "https:\/\/updatestest.bhwp.ie\/product\/example-plugin\/",
15// "requires": "",
16// "tested": "",
17// "new_version": "1.2.0",
18// "author": "",
19// "sections": {
20// "description": "",
21// "installation": "",
22// "changelog": ""
23// },
24// "banners": {
25// "low": "",
26// "high": ""
27// },
28// "rating": 0,
29// "ratings": [],
30// "num_ratings": 0,
31// "active_installs": 1,
32// "external": true,
33// "package": "https:\/\/updatestest.bhwp.ie\/?download_file=21&order=wc_order_lckerVdejfHHI&email&key=40bb2001-48c3-4633-995a-447aa82b491d",
34// "download_link": "https:\/\/updatestest.bhwp.ie\/?download_file=21&order=wc_order_lckerVdejfHHI&email&key=40bb2001-48c3-4633-995a-447aa82b491d"
35// }
36// }
37
38namespace BrianHenryIE\WP_Plugin_Updater\Integrations\SLSWC\Model;
39
40class Check_Updates_Response {
41
42    public function __construct(
43        protected string $status,
44        protected string $slug,
45        protected string $message,
46        protected Software_Details $software_details
47    ) {
48    }
49
50    public function get_status(): string {
51        return $this->status;
52    }
53
54    public function get_slug(): string {
55        return $this->slug;
56    }
57
58    public function get_message(): string {
59        return $this->message;
60    }
61
62    public function get_software_details(): Software_Details {
63        return $this->software_details;
64    }
65}