Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
5.26% covered (danger)
5.26%
1 / 19
5.26% covered (danger)
5.26%
1 / 19
CRAP
0.00% covered (danger)
0.00%
0 / 1
User
5.26% covered (danger)
5.26%
1 / 19
5.26% covered (danger)
5.26%
1 / 19
325.95
0.00% covered (danger)
0.00%
0 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 get_login
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_id
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_node_id
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_avatar_url
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_gravatar_id
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_url
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_html_url
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_followers_url
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_following_url
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_gists_url
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_starred_url
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_subscriptions_url
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_organizations_url
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_repos_url
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_events_url
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_received_events_url
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_type
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 is_site_admin
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2/**
3 * @see https://github.com/github/rest-api-description
4 *
5 * @package brianhenryie/bh-wp-plugin-updater
6 */
7
8namespace BrianHenryIE\WP_Plugin_Updater\Integrations\GitHub\Model;
9
10class User {
11
12    public function __construct(
13        protected string $login,
14        protected int $id,
15        protected string $node_id,
16        protected string $avatar_url,
17        protected string $gravatar_id,
18        protected string $url,
19        protected string $html_url,
20        protected string $followers_url,
21        protected string $following_url,
22        protected string $gists_url,
23        protected string $starred_url,
24        protected string $subscriptions_url,
25        protected string $organizations_url,
26        protected string $repos_url,
27        protected string $events_url,
28        protected string $received_events_url,
29        protected string $type,
30        protected bool $site_admin
31    ) {
32    }
33
34    public function get_login(): string {
35        return $this->login;
36    }
37
38    public function get_id(): int {
39        return $this->id;
40    }
41
42    public function get_node_id(): string {
43        return $this->node_id;
44    }
45
46    public function get_avatar_url(): string {
47        return $this->avatar_url;
48    }
49
50    public function get_gravatar_id(): string {
51        return $this->gravatar_id;
52    }
53
54    public function get_url(): string {
55        return $this->url;
56    }
57
58    public function get_html_url(): string {
59        return $this->html_url;
60    }
61
62    public function get_followers_url(): string {
63        return $this->followers_url;
64    }
65
66    public function get_following_url(): string {
67        return $this->following_url;
68    }
69
70    public function get_gists_url(): string {
71        return $this->gists_url;
72    }
73
74    public function get_starred_url(): string {
75        return $this->starred_url;
76    }
77
78    public function get_subscriptions_url(): string {
79        return $this->subscriptions_url;
80    }
81
82    public function get_organizations_url(): string {
83        return $this->organizations_url;
84    }
85
86    public function get_repos_url(): string {
87        return $this->repos_url;
88    }
89
90    public function get_events_url(): string {
91        return $this->events_url;
92    }
93
94    public function get_received_events_url(): string {
95        return $this->received_events_url;
96    }
97
98    public function get_type(): string {
99        return $this->type;
100    }
101
102    public function is_site_admin(): bool {
103        return $this->site_admin;
104    }
105}