Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .oas-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.10.4
1.10.7
4 changes: 2 additions & 2 deletions src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'OpenAPI-Generator/1.10.4/PHP';
protected $userAgent = 'OpenAPI-Generator/1.10.7/PHP';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -433,7 +433,7 @@ public static function toDebugReport()
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the OpenAPI document: v1' . PHP_EOL;
$report .= ' SDK Package Version: 1.10.4' . PHP_EOL;
$report .= ' SDK Package Version: 1.10.7' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
46 changes: 40 additions & 6 deletions src/Model/RichTextBackground.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ class RichTextBackground implements ModelInterface, ArrayAccess, \JsonSerializab
protected static $openAPITypes = [
'color' => 'string',
'opacity' => 'float',
'border_radius' => 'float'
'border_radius' => 'float',
'wrap' => 'bool'
];

/**
Expand All @@ -73,7 +74,8 @@ class RichTextBackground implements ModelInterface, ArrayAccess, \JsonSerializab
protected static $openAPIFormats = [
'color' => null,
'opacity' => null,
'border_radius' => null
'border_radius' => null,
'wrap' => null
];

/**
Expand All @@ -84,7 +86,8 @@ class RichTextBackground implements ModelInterface, ArrayAccess, \JsonSerializab
protected static array $openAPINullables = [
'color' => false,
'opacity' => false,
'border_radius' => false
'border_radius' => false,
'wrap' => false
];

/**
Expand Down Expand Up @@ -175,7 +178,8 @@ public function isNullableSetToNull(string $property): bool
protected static $attributeMap = [
'color' => 'color',
'opacity' => 'opacity',
'border_radius' => 'borderRadius'
'border_radius' => 'borderRadius',
'wrap' => 'wrap'
];

/**
Expand All @@ -186,7 +190,8 @@ public function isNullableSetToNull(string $property): bool
protected static $setters = [
'color' => 'setColor',
'opacity' => 'setOpacity',
'border_radius' => 'setBorderRadius'
'border_radius' => 'setBorderRadius',
'wrap' => 'setWrap'
];

/**
Expand All @@ -197,7 +202,8 @@ public function isNullableSetToNull(string $property): bool
protected static $getters = [
'color' => 'getColor',
'opacity' => 'getOpacity',
'border_radius' => 'getBorderRadius'
'border_radius' => 'getBorderRadius',
'wrap' => 'getWrap'
];

/**
Expand Down Expand Up @@ -260,6 +266,7 @@ public function __construct(array $data = null)
$this->setIfExists('color', $data ?? [], null);
$this->setIfExists('opacity', $data ?? [], 1);
$this->setIfExists('border_radius', $data ?? [], 0);
$this->setIfExists('wrap', $data ?? [], false);
}

/**
Expand Down Expand Up @@ -418,6 +425,33 @@ public function setBorderRadius($border_radius)

return $this;
}

/**
* Gets wrap
*
* @return bool|null
*/
public function getWrap()
{
return $this->container['wrap'];
}

/**
* Sets wrap
*
* @param bool|null $wrap When true, the background pill shrinks to fit the rendered text bounding box plus the asset's padding (and stroke width, if present), producing a pill or badge effect. When false (default), the background fills the full asset content area. Available on rich-text and rich-caption assets only; not supported on legacy `type: text`.
*
* @return self
*/
public function setWrap($wrap)
{
if (is_null($wrap)) {
throw new \InvalidArgumentException('non-nullable wrap cannot be null');
}
$this->container['wrap'] = $wrap;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
Expand Down