PhpApiGenerator class

Gera o backend em PHP (PDO + MySQL) a partir da MESMA definição declarativa usada no alvo Dart. Emite um _flenx.php (base: .env, PDO, envelope, paginação, CORS) e um arquivo por endpoint. O usuário não escreve PHP.

Constructors

PhpApiGenerator()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generate(List<ApiEndpoint> endpoints) Map<String, String>
Retorna nomeArquivo -> conteúdo (inclui _flenx.php).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
writeTo(String dir, List<ApiEndpoint> endpoints, {List<DbModel> models = const []}) Future<void>
Escreve os .php em dir e, se houver models, a migrations.sql.

Operators

operator ==(Object other) bool
The equality operator.
inherited