PHP Class FluentStructure, fluentpdo

Mostra file Open project: fpdo/fluentpdo Class Usage Examples

Public Methods

Method Description
__construct ( string $primaryKey = 'id', string $foreignKey = '%s_id' ) FluentStructure constructor.
getForeignKey ( string $table ) : string
getPrimaryKey ( string $table ) : string

Private Methods

Method Description
key ( string | callback $key, string $table ) : string

Method Details

__construct() public method

FluentStructure constructor.
public __construct ( string $primaryKey = 'id', string $foreignKey = '%s_id' )
$primaryKey string
$foreignKey string

getForeignKey() public method

public getForeignKey ( string $table ) : string
$table string
return string

getPrimaryKey() public method

public getPrimaryKey ( string $table ) : string
$table string
return string