Trait LaravelUi5\OData\Edm\Annotation\TypedAnnotationTrait

Shared implementation for classes generated from OData vocabulary Terms.

Every class generated by the vocabulary generator uses this trait. It provides:

  • getQualifier() — reads $this->qualifier declared by the using class
  • toAnnotation() — constructs an Annotation from TERM, qualifier, and value
  • buildAnnotationValue() (abstract) — each generated class maps its own typed constructor arguments to ConstantAnnotationValue, RecordAnnotationValue, or CollectionAnnotationValue

The trait never inspects the using class's properties directly other than $qualifier. All typed property access is delegated to buildAnnotationValue().

Methods