Documentation

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
protected array<string|int, Joinable> $tableLinks = []

Array of links to other tables

Methods

__construct()

public __construct(mixed $name) : mixed
Parameters
$name : mixed
public addTableLink(string $baseColumn, Joinable $joinable) : $this
Parameters
$baseColumn : string
$joinable : Joinable
Return values
$this
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
string
public getTableLinks() : array<string|int, Joinable>
Return values
array<string|int, Joinable>

setName()

public setName(string $name) : $this
Parameters
$name : string
Return values
$this
public setTableLinks(mixed $tableLinks) : $this
Parameters
$tableLinks : mixed
Return values
$this
private hasLink(mixed $target, mixed $targetCol, mixed $alias) : bool
Parameters
$target : mixed
$targetCol : mixed
$alias : mixed
Return values
bool

        
On this page

Search results