1 | <?php |
||
11 | class User |
||
12 | { |
||
13 | /** |
||
14 | * @var int |
||
15 | */ |
||
16 | private $id; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $name; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $screen_name; |
||
27 | |||
28 | /** |
||
29 | * @var string|null |
||
30 | */ |
||
31 | private $profile_image_url; |
||
32 | |||
33 | /** |
||
34 | * @var string|null |
||
35 | */ |
||
36 | private $profile_image_url_https; |
||
37 | |||
38 | /** |
||
39 | * @var Collection<int, Tweet> |
||
40 | */ |
||
41 | private $tweets; |
||
42 | |||
43 | 16 | public function __construct(?int $id = null) |
|
51 | |||
52 | 16 | public function setId(int $id): self |
|
58 | |||
59 | 1 | public function getId(): int |
|
63 | |||
64 | /** |
||
65 | * Set name. |
||
66 | */ |
||
67 | 16 | public function setName(string $name): self |
|
73 | |||
74 | /** |
||
75 | * Get name. |
||
76 | */ |
||
77 | 10 | public function getName(): string |
|
81 | |||
82 | /** |
||
83 | * Set screen_name. |
||
84 | */ |
||
85 | 16 | public function setScreenName(string $screenName): self |
|
91 | |||
92 | /** |
||
93 | * Get screen_name. |
||
94 | */ |
||
95 | 7 | public function getScreenName(): string |
|
99 | |||
100 | /** |
||
101 | * Set profile_image_url. |
||
102 | */ |
||
103 | 1 | public function setProfileImageUrl(?string $profileImageUrl): self |
|
109 | |||
110 | /** |
||
111 | * Get profile_image_url. |
||
112 | */ |
||
113 | 2 | public function getProfileImageUrl(): ?string |
|
117 | |||
118 | /** |
||
119 | * Set profile_image_url_https. |
||
120 | */ |
||
121 | 15 | public function setProfileImageUrlHttps(?string $profileImageUrlHttps): self |
|
127 | |||
128 | /** |
||
129 | * Get profile_image_url_https. |
||
130 | */ |
||
131 | 9 | public function getProfileImageUrlHttps(): ?string |
|
135 | |||
136 | /** |
||
137 | * Get profile image, with HTTPS if available. |
||
138 | */ |
||
139 | 8 | public function getProfileImageUrlHttpOrHttps(): ?string |
|
148 | |||
149 | /** |
||
150 | * Get tweets. |
||
151 | * |
||
152 | * @return Collection<int, Tweet> |
||
|
|||
153 | */ |
||
154 | 1 | public function getTweets(): Collection |
|
158 | |||
159 | /** |
||
160 | * Add a tweet. |
||
161 | */ |
||
162 | 14 | public function addTweet(Tweet $tweet): self |
|
168 | |||
169 | /** |
||
170 | * Call setter functions. |
||
171 | */ |
||
172 | 3 | public function setValues(\stdClass $userTmp): self |
|
181 | } |
||
182 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.