Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
14.29% |
2 / 14 |
|
14.29% |
2 / 14 |
CRAP | |
0.00% |
0 / 1 |
| Assets | |
14.29% |
2 / 14 |
|
14.29% |
2 / 14 |
137.43 | |
0.00% |
0 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| get_url | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_id | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_node_id | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_name | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_label | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_uploader | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_content_type | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_state | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_size | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_download_count | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_created_at | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_updated_at | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_browser_download_url | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * @see https://jacobdekeizer.github.io/json-to-php-generator/ |
| 4 | */ |
| 5 | |
| 6 | namespace BrianHenryIE\WP_Plugin_Updater\Integrations\GitHub\Model; |
| 7 | |
| 8 | class Assets { |
| 9 | |
| 10 | public function __construct( |
| 11 | protected string $url, |
| 12 | protected int $id, |
| 13 | protected string $node_id, |
| 14 | protected string $name, |
| 15 | protected string $label, |
| 16 | protected User $uploader, |
| 17 | protected string $content_type, |
| 18 | protected string $state, |
| 19 | protected int $size, |
| 20 | protected int $download_count, |
| 21 | protected string $created_at, |
| 22 | protected string $updated_at, |
| 23 | protected string $browser_download_url |
| 24 | ) { |
| 25 | } |
| 26 | |
| 27 | public function get_url(): string { |
| 28 | return $this->url; |
| 29 | } |
| 30 | |
| 31 | public function get_id(): int { |
| 32 | return $this->id; |
| 33 | } |
| 34 | |
| 35 | public function get_node_id(): string { |
| 36 | return $this->node_id; |
| 37 | } |
| 38 | |
| 39 | public function get_name(): string { |
| 40 | return $this->name; |
| 41 | } |
| 42 | |
| 43 | public function get_label(): string { |
| 44 | return $this->label; |
| 45 | } |
| 46 | |
| 47 | public function get_uploader(): User { |
| 48 | return $this->uploader; |
| 49 | } |
| 50 | |
| 51 | public function get_content_type(): string { |
| 52 | return $this->content_type; |
| 53 | } |
| 54 | |
| 55 | public function get_state(): string { |
| 56 | return $this->state; |
| 57 | } |
| 58 | |
| 59 | public function get_size(): int { |
| 60 | return $this->size; |
| 61 | } |
| 62 | |
| 63 | public function get_download_count(): int { |
| 64 | return $this->download_count; |
| 65 | } |
| 66 | |
| 67 | public function get_created_at(): string { |
| 68 | return $this->created_at; |
| 69 | } |
| 70 | |
| 71 | public function get_updated_at(): string { |
| 72 | return $this->updated_at; |
| 73 | } |
| 74 | |
| 75 | public function get_browser_download_url(): string { |
| 76 | return $this->browser_download_url; |
| 77 | } |
| 78 | } |