| 1: | <?php |
| 2: | |
| 3: | declare(strict_types=1); |
| 4: | |
| 5: | namespace LaravelUi5\OData\Protocol\Planning\Expression; |
| 6: | |
| 7: | final readonly class LiteralExpression extends FilterExpression |
| 8: | { |
| 9: | /** |
| 10: | * @param mixed $value Typed PHP scalar (int, float, string, bool, or a value object for dates/guids). |
| 11: | * @param string $edmType Fully qualified Edm type, e.g. 'Edm.String', 'Edm.Int32', 'Edm.DateTimeOffset'. |
| 12: | */ |
| 13: | public function __construct( |
| 14: | public readonly mixed $value, |
| 15: | public readonly string $edmType, |
| 16: | ) {} |
| 17: | |
| 18: | public function kind(): FilterExpressionKind |
| 19: | { |
| 20: | return FilterExpressionKind::Literal; |
| 21: | } |
| 22: | } |
| 23: |