Метод | Описание | |
---|---|---|
__construct ( string $primaryKey = 'id', string $foreignKey = '%s_id' ) | FluentStructure constructor. | |
getForeignKey ( string $table ) : string | ||
getPrimaryKey ( string $table ) : string |
Метод | Описание | |
---|---|---|
key ( string | callback $key, string $table ) : string |
public __construct ( string $primaryKey = 'id', string $foreignKey = '%s_id' ) | ||
$primaryKey | string | |
$foreignKey | string |
public getForeignKey ( string $table ) : string | ||
$table | string | |
Результат | string |
public getPrimaryKey ( string $table ) : string | ||
$table | string | |
Результат | string |