EntityGenerator
in package
Génère les classes de chaque entité d'une base de donnée
Table of Contents
- generate() : string
- generateAttributes() : string
- generateMethods() : string
- getFieldsName() : array<string|int, mixed>
Methods
generate()
public
static generate(string $tableName, string $databaseName, DBManager $manager) : string
Parameters
- $tableName : string
- $databaseName : string
- $manager : DBManager
Return values
string —generateAttributes()
protected
static generateAttributes(array<string|int, mixed> $fields) : string
Parameters
- $fields : array<string|int, mixed>
Return values
string —generateMethods()
protected
static generateMethods(array<string|int, mixed> $fieldsName) : string
Parameters
- $fieldsName : array<string|int, mixed>
Return values
string —getFieldsName()
protected
static getFieldsName(string $tableName, string $databaseName, DBManager $manager) : array<string|int, mixed>
Parameters
- $tableName : string
- $databaseName : string
- $manager : DBManager