Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 21 |
|
0.00% |
0 / 21 |
CRAP | |
0.00% |
0 / 1 |
| Software_Details | |
0.00% |
0 / 21 |
|
0.00% |
0 / 21 |
462 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_name | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_id | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_slug | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_plugin | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_version | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_last_updated | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_homepage | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_requires | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_tested | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_new_version | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_author | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_sections | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_banners | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_rating | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_ratings | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_num_ratings | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_active_installs | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_external | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_package | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_download_link | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace BrianHenryIE\WP_Plugin_Updater\Integrations\SLSWC\Model; |
| 5 | |
| 6 | use BrianHenryIE\WP_Plugin_Updater\Model\Plugin_Update_Interface; |
| 7 | |
| 8 | class Software_Details { |
| 9 | public function __construct( |
| 10 | protected string $name, |
| 11 | protected string $id, |
| 12 | protected string $slug, |
| 13 | protected string $plugin, |
| 14 | protected string $version, |
| 15 | protected string $last_updated, |
| 16 | protected string $homepage, |
| 17 | protected string $requires, |
| 18 | protected string $tested, |
| 19 | protected string $new_version, |
| 20 | protected string $author, |
| 21 | protected Sections $sections, |
| 22 | protected Banners $banners, |
| 23 | protected int $rating, |
| 24 | protected array $ratings, |
| 25 | protected int $num_ratings, |
| 26 | protected int $active_installs, |
| 27 | protected bool $external, |
| 28 | protected string $package, |
| 29 | protected string $download_link |
| 30 | ) { |
| 31 | } |
| 32 | |
| 33 | public function get_name(): string { |
| 34 | return $this->name; |
| 35 | } |
| 36 | |
| 37 | public function get_id(): string { |
| 38 | return $this->id; |
| 39 | } |
| 40 | |
| 41 | public function get_slug(): string { |
| 42 | return $this->slug; |
| 43 | } |
| 44 | |
| 45 | public function get_plugin(): string { |
| 46 | return $this->plugin; |
| 47 | } |
| 48 | |
| 49 | public function get_version(): string { |
| 50 | return $this->version; |
| 51 | } |
| 52 | |
| 53 | public function get_last_updated(): string { |
| 54 | return $this->last_updated; |
| 55 | } |
| 56 | |
| 57 | public function get_homepage(): string { |
| 58 | return $this->homepage; |
| 59 | } |
| 60 | |
| 61 | public function get_requires(): string { |
| 62 | return $this->requires; |
| 63 | } |
| 64 | |
| 65 | public function get_tested(): string { |
| 66 | return $this->tested; |
| 67 | } |
| 68 | |
| 69 | public function get_new_version(): string { |
| 70 | return $this->new_version; |
| 71 | } |
| 72 | |
| 73 | public function get_author(): string { |
| 74 | return $this->author; |
| 75 | } |
| 76 | |
| 77 | public function get_sections(): Sections { |
| 78 | return $this->sections; |
| 79 | } |
| 80 | |
| 81 | public function get_banners(): Banners { |
| 82 | return $this->banners; |
| 83 | } |
| 84 | |
| 85 | public function get_rating(): int { |
| 86 | return $this->rating; |
| 87 | } |
| 88 | |
| 89 | public function get_ratings(): array { |
| 90 | return $this->ratings; |
| 91 | } |
| 92 | |
| 93 | public function get_num_ratings(): int { |
| 94 | return $this->num_ratings; |
| 95 | } |
| 96 | |
| 97 | public function get_active_installs(): int { |
| 98 | return $this->active_installs; |
| 99 | } |
| 100 | |
| 101 | public function get_external(): bool { |
| 102 | return $this->external; |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * `package` and `download_link` in the JSON seem to be the same. |
| 107 | */ |
| 108 | public function get_package(): string { |
| 109 | return $this->package; |
| 110 | } |
| 111 | |
| 112 | /** |
| 113 | * `package` and `download_link` in the JSON seem to be the same. |
| 114 | */ |
| 115 | public function get_download_link(): string { |
| 116 | return $this->download_link; |
| 117 | } |
| 118 | } |