@@ -58,8 +58,10 @@ class FeedPostLink implements ModelInterface, ArrayAccess, \JsonSerializable
5858 * @var string[]
5959 */
6060 protected static $ openAPITypes = [
61+ 'text ' => 'string ' ,
6162 'title ' => 'string ' ,
62- 'link ' => 'string '
63+ 'description ' => 'string ' ,
64+ 'url ' => 'string '
6365 ];
6466
6567 /**
@@ -70,8 +72,10 @@ class FeedPostLink implements ModelInterface, ArrayAccess, \JsonSerializable
7072 * @psalm-var array<string, string|null>
7173 */
7274 protected static $ openAPIFormats = [
75+ 'text ' => null ,
7376 'title ' => null ,
74- 'link ' => null
77+ 'description ' => null ,
78+ 'url ' => null
7579 ];
7680
7781 /**
@@ -80,8 +84,10 @@ class FeedPostLink implements ModelInterface, ArrayAccess, \JsonSerializable
8084 * @var boolean[]
8185 */
8286 protected static array $ openAPINullables = [
87+ 'text ' => false ,
8388 'title ' => false ,
84- 'link ' => false
89+ 'description ' => false ,
90+ 'url ' => false
8591 ];
8692
8793 /**
@@ -170,8 +176,10 @@ public function isNullableSetToNull(string $property): bool
170176 * @var string[]
171177 */
172178 protected static $ attributeMap = [
179+ 'text ' => 'text ' ,
173180 'title ' => 'title ' ,
174- 'link ' => 'link '
181+ 'description ' => 'description ' ,
182+ 'url ' => 'url '
175183 ];
176184
177185 /**
@@ -180,8 +188,10 @@ public function isNullableSetToNull(string $property): bool
180188 * @var string[]
181189 */
182190 protected static $ setters = [
191+ 'text ' => 'setText ' ,
183192 'title ' => 'setTitle ' ,
184- 'link ' => 'setLink '
193+ 'description ' => 'setDescription ' ,
194+ 'url ' => 'setUrl '
185195 ];
186196
187197 /**
@@ -190,8 +200,10 @@ public function isNullableSetToNull(string $property): bool
190200 * @var string[]
191201 */
192202 protected static $ getters = [
203+ 'text ' => 'getText ' ,
193204 'title ' => 'getTitle ' ,
194- 'link ' => 'getLink '
205+ 'description ' => 'getDescription ' ,
206+ 'url ' => 'getUrl '
195207 ];
196208
197209 /**
@@ -251,8 +263,10 @@ public function getModelName()
251263 */
252264 public function __construct (?array $ data = null )
253265 {
266+ $ this ->setIfExists ('text ' , $ data ?? [], null );
254267 $ this ->setIfExists ('title ' , $ data ?? [], null );
255- $ this ->setIfExists ('link ' , $ data ?? [], null );
268+ $ this ->setIfExists ('description ' , $ data ?? [], null );
269+ $ this ->setIfExists ('url ' , $ data ?? [], null );
256270 }
257271
258272 /**
@@ -297,6 +311,33 @@ public function valid()
297311 }
298312
299313
314+ /**
315+ * Gets text
316+ *
317+ * @return string|null
318+ */
319+ public function getText ()
320+ {
321+ return $ this ->container ['text ' ];
322+ }
323+
324+ /**
325+ * Sets text
326+ *
327+ * @param string|null $text text
328+ *
329+ * @return self
330+ */
331+ public function setText ($ text )
332+ {
333+ if (is_null ($ text )) {
334+ throw new \InvalidArgumentException ('non-nullable text cannot be null ' );
335+ }
336+ $ this ->container ['text ' ] = $ text ;
337+
338+ return $ this ;
339+ }
340+
300341 /**
301342 * Gets title
302343 *
@@ -325,28 +366,55 @@ public function setTitle($title)
325366 }
326367
327368 /**
328- * Gets link
369+ * Gets description
370+ *
371+ * @return string|null
372+ */
373+ public function getDescription ()
374+ {
375+ return $ this ->container ['description ' ];
376+ }
377+
378+ /**
379+ * Sets description
380+ *
381+ * @param string|null $description description
382+ *
383+ * @return self
384+ */
385+ public function setDescription ($ description )
386+ {
387+ if (is_null ($ description )) {
388+ throw new \InvalidArgumentException ('non-nullable description cannot be null ' );
389+ }
390+ $ this ->container ['description ' ] = $ description ;
391+
392+ return $ this ;
393+ }
394+
395+ /**
396+ * Gets url
329397 *
330398 * @return string|null
331399 */
332- public function getLink ()
400+ public function getUrl ()
333401 {
334- return $ this ->container ['link ' ];
402+ return $ this ->container ['url ' ];
335403 }
336404
337405 /**
338- * Sets link
406+ * Sets url
339407 *
340- * @param string|null $link link
408+ * @param string|null $url url
341409 *
342410 * @return self
343411 */
344- public function setLink ( $ link )
412+ public function setUrl ( $ url )
345413 {
346- if (is_null ($ link )) {
347- throw new \InvalidArgumentException ('non-nullable link cannot be null ' );
414+ if (is_null ($ url )) {
415+ throw new \InvalidArgumentException ('non-nullable url cannot be null ' );
348416 }
349- $ this ->container ['link ' ] = $ link ;
417+ $ this ->container ['url ' ] = $ url ;
350418
351419 return $ this ;
352420 }
0 commit comments