MetricValueCreateStruct
MetricValueCreateStruct.php
:
16
Read-only
Final
Implements
MetricValueInterface
Constants¶
MAX_ENTITY_ID_LENGTH ¶
MetricValueCreateStruct.php
:
19
|
|
|
MAX_STRING_VALUE_LENGTH ¶
MetricValueCreateStruct.php
:
18
|
|
|
Properties¶
$computedAt
¶
MetricValueCreateStruct.php
:
32
|
|
|
$entityId
¶
MetricValueCreateStruct.php
:
28
|
|
|
Attributes
- #[Length]
- $max: self::MAX_ENTITY_ID_LENGTH
- #[NotBlank]
- $normalizer: 'trim'
$entityType
¶
MetricValueCreateStruct.php
:
25
|
|
|
Attributes
- #[Length]
- $max: 64
- #[NotBlank]
$metricId
¶
MetricValueCreateStruct.php
:
22
|
|
|
Attributes
- #[Length]
- $max: 128
- #[NotBlank]
$value
¶
MetricValueCreateStruct.php
:
31
|
|
|
Methods¶
__construct()
¶
MetricValueCreateStruct.php
:
21
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $metricId | string | - | - |
| $entityType | string | - | - |
| $entityId | string | - | - |
| $value | float|int|string | - | - |
| $computedAt | DateTimeImmutable|null | null | - |
getEntityId()
¶
MetricValueCreateStruct.php
:
58
|
|
|
Return values
string
getEntityType()
¶
MetricValueCreateStruct.php
:
53
|
|
|
Return values
string
getMetricId()
¶
MetricValueCreateStruct.php
:
48
|
|
|
Return values
string
validateStringValueLength()
¶
MetricValueCreateStruct.php
:
35
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $context | ExecutionContextInterface | - | - |
Attributes
- #[Callback]