AXIAM PHP SDK

ManifestAttributeReader
in package

FinalYes

Builds a {@see ManagementManifest} from the `#[Managed*]` attributes on a class (CONTRACT.md §27.6).

This is the PHP idiom for the declarative layer, and it buys something the fluent builder cannot: the declaration lives in version control as a type, so a tenant's shape is reviewed like code, diffed like code, and can be referenced from anywhere in the application by class name.

The class is never instantiated and its methods are never called. Only its attributes are read — so a manifest class can be an empty class body, and reading one has no side effects beyond autoloading it.

Table of Contents

Methods

read()  : ManagementManifest
Reads the manifest declared by `$className`'s attributes.

Methods

read()

Reads the manifest declared by `$className`'s attributes.

public static read(class-string $className) : ManagementManifest
Parameters
$className : class-string

The annotated class.

Tags
throws
ManifestException

when the class does not exist, or its declaration is incoherent (a dangling reference, a cycle, a duplicate key).

Return values
ManagementManifest
On this page

Search results