1: <?php
2:
3: namespace LaravelUi5\Core\Ui5\Data;
4:
5: use LaravelUi5\Core\Ui5\Enums\DeviationIndicator;
6: use LaravelUi5\Core\Ui5\Enums\LoadState;
7: use LaravelUi5\Core\Ui5\Enums\ValueColor;
8:
9: readonly class NumericContentData extends Payload
10: {
11: /**
12: * @param float|int|string|null $value the main numeric or textual value to be displayed in the tile content.
13: * @param ValueColor|null $valueColor the semantic color for the value display (e.g., Good, Error).
14: * @param DeviationIndicator|null $indicator the trend indicator for the value (e.g., "Up", "Down", "None").
15: * @param string|null $scale the scale suffix to be displayed next to the value (e.g., "k", "€").
16: * @param LoadState|null $state the loading or result state of the tile (e.g., Loaded, Failed).
17: */
18: public function __construct(
19: public float|int|string|null $value = null,
20: public ?ValueColor $valueColor = null,
21: public ?DeviationIndicator $indicator = null,
22: public ?string $scale = null,
23: public ?LoadState $state = null,
24: )
25: {
26: parent::__construct();
27: }
28: }
29: