PHP Class LeanMapper\Relationship\HasMany

Author: Vojtěch Kohout
Exibir arquivo Open project: tharos/leanmapper Class Usage Examples

Public Methods

Method Description
__construct ( string | null $columnReferencingSourceTable, string | null $relationshipTable, string | null $columnReferencingTargetTable, string | null $targetTable, string $strategy )
getColumnReferencingSourceTable ( ) : string | null Gets name of column referencing source table
getColumnReferencingTargetTable ( ) : string | null Gets name of column referencing target table
getRelationshipTable ( ) : string | null Gets name of relationship table
getStrategy ( ) : string Gets strategy used to get referencing result
getTargetTable ( ) : string | null Gets name of target table

Method Details

__construct() public method

public __construct ( string | null $columnReferencingSourceTable, string | null $relationshipTable, string | null $columnReferencingTargetTable, string | null $targetTable, string $strategy )
$columnReferencingSourceTable string | null
$relationshipTable string | null
$columnReferencingTargetTable string | null
$targetTable string | null
$strategy string

getColumnReferencingSourceTable() public method

Gets name of column referencing source table

getColumnReferencingTargetTable() public method

Gets name of column referencing target table

getRelationshipTable() public method

Gets name of relationship table
public getRelationshipTable ( ) : string | null
return string | null

getStrategy() public method

Gets strategy used to get referencing result
public getStrategy ( ) : string
return string strategy

getTargetTable() public method

Gets name of target table
public getTargetTable ( ) : string | null
return string | null