mini\Metadata\AttributeMetadataFactory class

Documentation

Builds metadata from PHP class attributes

Scans class and property attributes to construct Metadata instances that describe the entity structure. String values (title, description) are automatically wrapped in Translatable for i18n support.

Methods (10)

Build metadata from a class using reflection

Get the class reference for a property

Get source file path relative to project root

Wrap a string value in Translatable with the source file context

Wrap a value in Translatable only if it's a string

Wrap string values in an array with Translatable

Apply class-level attributes to metadata

Build metadata from a Property attribute

Build metadata for a single property from its attributes

Apply a metadata attribute to a metadata instance

Source

src/Metadata/AttributeMetadataFactory.php:18-284