Skip to content
Closed
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
46 changes: 6 additions & 40 deletions generated/Model/MetricValueUpdateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ class MetricValueUpdateRequest implements ModelInterface, ArrayAccess, \JsonSeri
* @var string[]
*/
protected static $openAPITypes = [
'value' => '\ActivitySmith\Generated\Model\MetricValueUpdateRequestValue',
'timestamp' => '\DateTime'
'value' => '\ActivitySmith\Generated\Model\MetricValueUpdateRequestValue'
];

/**
Expand All @@ -70,8 +69,7 @@ class MetricValueUpdateRequest implements ModelInterface, ArrayAccess, \JsonSeri
* @psalm-var array<string, string|null>
*/
protected static $openAPIFormats = [
'value' => null,
'timestamp' => 'date-time'
'value' => null
];

/**
Expand All @@ -80,8 +78,7 @@ class MetricValueUpdateRequest implements ModelInterface, ArrayAccess, \JsonSeri
* @var boolean[]
*/
protected static array $openAPINullables = [
'value' => false,
'timestamp' => false
'value' => false
];

/**
Expand Down Expand Up @@ -170,8 +167,7 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $attributeMap = [
'value' => 'value',
'timestamp' => 'timestamp'
'value' => 'value'
];

/**
Expand All @@ -180,8 +176,7 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $setters = [
'value' => 'setValue',
'timestamp' => 'setTimestamp'
'value' => 'setValue'
];

/**
Expand All @@ -190,8 +185,7 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $getters = [
'value' => 'getValue',
'timestamp' => 'getTimestamp'
'value' => 'getValue'
];

/**
Expand Down Expand Up @@ -252,7 +246,6 @@ public function getModelName()
public function __construct(array $data = null)
{
$this->setIfExists('value', $data ?? [], null);
$this->setIfExists('timestamp', $data ?? [], null);
}

/**
Expand Down Expand Up @@ -326,33 +319,6 @@ public function setValue($value)

return $this;
}

/**
* Gets timestamp
*
* @return \DateTime|null
*/
public function getTimestamp()
{
return $this->container['timestamp'];
}

/**
* Sets timestamp
*
* @param \DateTime|null $timestamp Optional ISO timestamp for when the metric value was measured. Defaults to the server receive time.
*
* @return self
*/
public function setTimestamp($timestamp)
{
if (is_null($timestamp)) {
throw new \InvalidArgumentException('non-nullable timestamp cannot be null');
}
$this->container['timestamp'] = $timestamp;

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