| 1: | <?php |
| 2: | |
| 3: | declare(strict_types=1); |
| 4: | |
| 5: | namespace LaravelUi5\OData\Protocol\Planning; |
| 6: | |
| 7: | use LaravelUi5\OData\Edm\Contracts\Container\EntitySetInterface; |
| 8: | use LaravelUi5\OData\Edm\Contracts\Property\PropertyInterface; |
| 9: | |
| 10: | /** |
| 11: | * Plan for accessing a single property value: /EntitySet(key)/property |
| 12: | * |
| 13: | * Optionally suffixed with /$value for raw value access. |
| 14: | */ |
| 15: | final readonly class PropertyValuePlan extends QueryPlan |
| 16: | { |
| 17: | public function __construct( |
| 18: | public EntitySetInterface $target, |
| 19: | public KeyExpression $key, |
| 20: | public PropertyInterface $property, |
| 21: | public bool $rawValue, // true when /$value suffix is present |
| 22: | ) {} |
| 23: | } |
| 24: |