Skip to content
Merged
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
4 changes: 2 additions & 2 deletions generated/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.1.0/PHP';
protected $userAgent = 'OpenAPI-Generator/1.2.0/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: 1.0.0' . PHP_EOL;
$report .= ' SDK Package Version: 1.1.0' . PHP_EOL;
$report .= ' SDK Package Version: 1.2.0' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
71 changes: 0 additions & 71 deletions generated/Model/MetricFormat.php

This file was deleted.

62 changes: 0 additions & 62 deletions generated/Model/MetricUnitSpacing.php

This file was deleted.

38 changes: 19 additions & 19 deletions generated/Model/MetricValueUpdateResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class MetricValueUpdateResponse implements ModelInterface, ArrayAccess, \JsonSer
* @var string[]
*/
protected static $openAPITypes = [
'metric' => '\ActivitySmith\Generated\Model\WidgetMetric'
'success' => 'bool'
];

/**
Expand All @@ -68,7 +68,7 @@ class MetricValueUpdateResponse implements ModelInterface, ArrayAccess, \JsonSer
* @psalm-var array<string, string|null>
*/
protected static $openAPIFormats = [
'metric' => null
'success' => null
];

/**
Expand All @@ -77,7 +77,7 @@ class MetricValueUpdateResponse implements ModelInterface, ArrayAccess, \JsonSer
* @var boolean[]
*/
protected static array $openAPINullables = [
'metric' => false
'success' => false
];

/**
Expand Down Expand Up @@ -166,7 +166,7 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $attributeMap = [
'metric' => 'metric'
'success' => 'success'
];

/**
Expand All @@ -175,7 +175,7 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $setters = [
'metric' => 'setMetric'
'success' => 'setSuccess'
];

/**
Expand All @@ -184,7 +184,7 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $getters = [
'metric' => 'getMetric'
'success' => 'getSuccess'
];

/**
Expand Down Expand Up @@ -244,7 +244,7 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
$this->setIfExists('metric', $data ?? [], null);
$this->setIfExists('success', $data ?? [], null);
}

/**
Expand Down Expand Up @@ -274,8 +274,8 @@ public function listInvalidProperties()
{
$invalidProperties = [];

if ($this->container['metric'] === null) {
$invalidProperties[] = "'metric' can't be null";
if ($this->container['success'] === null) {
$invalidProperties[] = "'success' can't be null";
}
return $invalidProperties;
}
Expand All @@ -293,28 +293,28 @@ public function valid()


/**
* Gets metric
* Gets success
*
* @return \ActivitySmith\Generated\Model\WidgetMetric
* @return bool
*/
public function getMetric()
public function getSuccess()
{
return $this->container['metric'];
return $this->container['success'];
}

/**
* Sets metric
* Sets success
*
* @param \ActivitySmith\Generated\Model\WidgetMetric $metric metric
* @param bool $success success
*
* @return self
*/
public function setMetric($metric)
public function setSuccess($success)
{
if (is_null($metric)) {
throw new \InvalidArgumentException('non-nullable metric cannot be null');
if (is_null($success)) {
throw new \InvalidArgumentException('non-nullable success cannot be null');
}
$this->container['metric'] = $metric;
$this->container['success'] = $success;

return $this;
}
Expand Down
Loading