1 | <?php |
||
11 | class Media |
||
12 | { |
||
13 | /** |
||
14 | * @var int |
||
15 | */ |
||
16 | private $id; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $media_url_https; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $url; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $display_url; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | private $expanded_url; |
||
37 | |||
38 | /** |
||
39 | * @var Collection<int, Tweet> |
||
40 | */ |
||
41 | private $tweets; |
||
42 | |||
43 | 15 | public function __construct(?int $id = null) |
|
51 | |||
52 | /** |
||
53 | * Set id. |
||
54 | */ |
||
55 | 15 | public function setId(int $id): self |
|
61 | |||
62 | /** |
||
63 | * Get id. |
||
64 | */ |
||
65 | 1 | public function getId(): int |
|
69 | |||
70 | /** |
||
71 | * Set media_url_https. |
||
72 | */ |
||
73 | 15 | public function setMediaUrlHttps(string $mediaUrlHttps): self |
|
79 | |||
80 | /** |
||
81 | * Get media_url_https. |
||
82 | */ |
||
83 | 6 | public function getMediaUrlHttps(): string |
|
87 | |||
88 | /** |
||
89 | * Set url. |
||
90 | */ |
||
91 | 15 | public function setUrl(string $url): self |
|
97 | |||
98 | /** |
||
99 | * Get url. |
||
100 | */ |
||
101 | 6 | public function getUrl(): string |
|
105 | |||
106 | /** |
||
107 | * Set display_url. |
||
108 | */ |
||
109 | 15 | public function setDisplayUrl(string $displayUrl): self |
|
115 | |||
116 | /** |
||
117 | * Get display_url. |
||
118 | */ |
||
119 | 6 | public function getDisplayUrl(): string |
|
123 | |||
124 | /** |
||
125 | * Set expanded_url. |
||
126 | */ |
||
127 | 15 | public function setExpandedUrl(string $expandedUrl): self |
|
133 | |||
134 | /** |
||
135 | * Get expanded_url. |
||
136 | */ |
||
137 | 6 | public function getExpandedUrl(): ?string |
|
141 | |||
142 | /** |
||
143 | * Add a tweet. |
||
144 | */ |
||
145 | 13 | public function addTweet(Tweet $tweet): self |
|
151 | |||
152 | /** |
||
153 | * Remove a tweet. |
||
154 | */ |
||
155 | 1 | public function removeTweet(Tweet $tweet): self |
|
161 | |||
162 | /** |
||
163 | * Get tweets. |
||
164 | * |
||
165 | * @return Collection<int, Tweet> |
||
|
|||
166 | */ |
||
167 | 2 | public function getTweets(): Collection |
|
171 | |||
172 | /** |
||
173 | * Call setter functions. |
||
174 | */ |
||
175 | 3 | public function setValues(\stdClass $mediaTmp): self |
|
185 | } |
||
186 |
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.