Skip to content

Commit d294308

Browse files
committed
chore: rebuilt with latest spec 1.1.0
1 parent e6d77d1 commit d294308

File tree

4 files changed

+56
-2
lines changed

4 files changed

+56
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,5 @@ [email protected]
116116

117117
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
118118

119-
- API version: `1.0.4`
119+
- API version: `1.0.5`
120120
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`

docs/Model/ThingData.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@ Name | Type | Description | Notes
2222
**link_title** | **string** | | [optional]
2323
**link_permalink** | **string** | | [optional]
2424
**body** | **string** | | [optional]
25+
**is_self** | **bool** | | [optional]
26+
**selftext** | **string** | | [optional]
2527

2628
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)

src/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ public static function toDebugReport(): string
376376
$report = 'PHP SDK (Sigwin\RedditClient) Debug Report:'.\PHP_EOL;
377377
$report .= ' OS: '.php_uname().\PHP_EOL;
378378
$report .= ' PHP Version: '.\PHP_VERSION.\PHP_EOL;
379-
$report .= ' The version of the OpenAPI document: 1.0.4'.\PHP_EOL;
379+
$report .= ' The version of the OpenAPI document: 1.0.5'.\PHP_EOL;
380380
$report .= ' Temp Folder Path: '.self::getDefaultConfiguration()->getTempFolderPath().\PHP_EOL;
381381

382382
return $report;

src/Model/ThingData.php

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ class ThingData implements \JsonSerializable, ArrayAccess, ModelInterface
6060
'link_title' => 'string',
6161
'link_permalink' => 'string',
6262
'body' => 'string',
63+
'is_self' => 'bool',
64+
'selftext' => 'string',
6365
];
6466

6567
/**
@@ -88,6 +90,8 @@ class ThingData implements \JsonSerializable, ArrayAccess, ModelInterface
8890
'link_title' => null,
8991
'link_permalink' => null,
9092
'body' => null,
93+
'is_self' => null,
94+
'selftext' => null,
9195
];
9296

9397
/**
@@ -115,6 +119,8 @@ class ThingData implements \JsonSerializable, ArrayAccess, ModelInterface
115119
'link_title' => 'link_title',
116120
'link_permalink' => 'link_permalink',
117121
'body' => 'body',
122+
'is_self' => 'is_self',
123+
'selftext' => 'selftext',
118124
];
119125

120126
/**
@@ -141,6 +147,8 @@ class ThingData implements \JsonSerializable, ArrayAccess, ModelInterface
141147
'link_title' => 'setLinkTitle',
142148
'link_permalink' => 'setLinkPermalink',
143149
'body' => 'setBody',
150+
'is_self' => 'setIsSelf',
151+
'selftext' => 'setSelftext',
144152
];
145153

146154
/**
@@ -167,6 +175,8 @@ class ThingData implements \JsonSerializable, ArrayAccess, ModelInterface
167175
'link_title' => 'getLinkTitle',
168176
'link_permalink' => 'getLinkPermalink',
169177
'body' => 'getBody',
178+
'is_self' => 'getIsSelf',
179+
'selftext' => 'getSelftext',
170180
];
171181

172182
/**
@@ -202,6 +212,8 @@ public function __construct(array $data = null)
202212
$this->container['link_title'] = $data['link_title'] ?? null;
203213
$this->container['link_permalink'] = $data['link_permalink'] ?? null;
204214
$this->container['body'] = $data['body'] ?? null;
215+
$this->container['is_self'] = $data['is_self'] ?? null;
216+
$this->container['selftext'] = $data['selftext'] ?? null;
205217
}
206218

207219
/**
@@ -698,6 +710,46 @@ public function setBody($body): self
698710
return $this;
699711
}
700712

713+
/**
714+
* Gets is_self.
715+
*/
716+
public function getIsSelf(): ?bool
717+
{
718+
return $this->container['is_self'];
719+
}
720+
721+
/**
722+
* Sets is_self.
723+
*
724+
* @param null|bool $is_self is_self
725+
*/
726+
public function setIsSelf($is_self): self
727+
{
728+
$this->container['is_self'] = $is_self;
729+
730+
return $this;
731+
}
732+
733+
/**
734+
* Gets selftext.
735+
*/
736+
public function getSelftext(): ?string
737+
{
738+
return $this->container['selftext'];
739+
}
740+
741+
/**
742+
* Sets selftext.
743+
*
744+
* @param null|string $selftext selftext
745+
*/
746+
public function setSelftext($selftext): self
747+
{
748+
$this->container['selftext'] = $selftext;
749+
750+
return $this;
751+
}
752+
701753
/**
702754
* Returns true if offset exists. False otherwise.
703755
*

0 commit comments

Comments
 (0)