final |
|---|
Generates PHP readonly classes from an EdmxInterface object graph.
Output is placed in an Edm/ directory with subdirectories: Types/ — EntityType and ComplexType classes Entities/ — EntitySet classes Enums/ — EnumType classes (future)
Each generated class implements the corresponding Edm\Contracts\ interface. The root Edmx.php constructs the full object graph in its constructor.
Usage: $writer = new EdmxWriter($edmx, '/path/to/service/Edm', 'App\OData\Edm'); $writer->write();
| Methods | ||
|---|---|---|
public
|
__construct(EdmxInterface $edmx, string $outputDir, string $namespace, ?Closure $output = null)
|
# |
public
|
write(): void
|
# |