Table
in package
Table of Contents
Properties
- $name : string
- $tableLinks : array<string|int, Joinable>
Methods
- __construct() : mixed
- addTableLink() : $this
- getExternalLinks() : array<string|int, Joinable>
- getName() : string
- getTableLinks() : array<string|int, Joinable>
- removeLink() : mixed
- setName() : $this
- setTableLinks() : $this
- hasLink() : bool
Properties
$name
protected
string
$name
$tableLinks
protected
array<string|int, Joinable>
$tableLinks
= []
Array of links to other tables
Methods
__construct()
public
__construct(mixed $name) : mixed
Parameters
- $name : mixed
addTableLink()
public
addTableLink(string $baseColumn, Joinable $joinable) : $this
Parameters
- $baseColumn : string
- $joinable : Joinable
Return values
$thisgetExternalLinks()
public
getExternalLinks() : array<string|int, Joinable>
Return values
array<string|int, Joinable> —Only those links that are not joining the table to itself
getName()
public
getName() : string
Return values
stringgetTableLinks()
public
getTableLinks() : array<string|int, Joinable>
Return values
array<string|int, Joinable>removeLink()
public
removeLink(Joinable $linkToRemove) : mixed
Parameters
- $linkToRemove : Joinable
setName()
public
setName(string $name) : $this
Parameters
- $name : string
Return values
$thissetTableLinks()
public
setTableLinks(mixed $tableLinks) : $this
Parameters
- $tableLinks : mixed
Return values
$thishasLink()
private
hasLink(mixed $target, mixed $targetCol, mixed $alias) : bool
Parameters
- $target : mixed
- $targetCol : mixed
- $alias : mixed