| 1: | <?php |
| 2: | |
| 3: | declare(strict_types=1); |
| 4: | |
| 5: | namespace LaravelUi5\OData\Edm\Contracts\Type; |
| 6: | |
| 7: | use LaravelUi5\OData\Edm\EdmPrimitiveType; |
| 8: | |
| 9: | /** |
| 10: | * Represents a resolved Edm primitive type. |
| 11: | * |
| 12: | * This is a thin wrapper around EdmPrimitiveType that makes |
| 13: | * primitive types first-class participants in the TypeInterface |
| 14: | * hierarchy. It allows properties to declare their type uniformly |
| 15: | * regardless of whether it is primitive, structured, or enumerated. |
| 16: | * |
| 17: | * @see OData CSDL XML v4.01 ยง3.3 (Primitive Types) |
| 18: | */ |
| 19: | interface PrimitiveTypeInterface extends TypeInterface |
| 20: | { |
| 21: | /** |
| 22: | * The specific primitive type this instance represents. |
| 23: | */ |
| 24: | public function getPrimitiveType(): EdmPrimitiveType; |
| 25: | } |
| 26: |