PHP Class LeanMapper\Relationship\BelongsTo

Author: Vojtěch Kohout
Mostrar archivo Open project: tharos/leanmapper

Public Methods

Method Description
__construct ( string | null $columnReferencingSourceTable, string | null $targetTable, string $strategy )
getColumnReferencingSourceTable ( ) : string | null Gets name of column referencing source 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 $targetTable, string $strategy )
$columnReferencingSourceTable string | null
$targetTable string | null
$strategy string

getColumnReferencingSourceTable() public method

Gets name of column referencing source table

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