Documentation

Spec
in package

Table of Contents

Constants

DEFAULT_PRIMARY_KEY  = 'id'

Properties

$primaryKey  : string
$reflection  : ReflectionClass
$tableName  : string

Methods

__construct()  : mixed
getPrimaryKey()  : string
getSetter()  : string|null
getTableName()  : string
computePrimaryKey()  : string
computeTableName()  : string
constructorHook()  : mixed

Constants

DEFAULT_PRIMARY_KEY

public mixed DEFAULT_PRIMARY_KEY = 'id'

Properties

$primaryKey

private string $primaryKey

$reflection

private ReflectionClass $reflection

$tableName

private string $tableName

Methods

__construct()

public __construct(string $recordType[, string $tableName = null ][, string $primaryKey = null ][, array<string|int, mixed> $options = [] ]) : mixed
Parameters
$recordType : string
$tableName : string = null
$primaryKey : string = null
$options : array<string|int, mixed> = []

getPrimaryKey()

public getPrimaryKey() : string
Return values
string

getSetter()

public getSetter(string $property[, bool $isPublic = true ]) : string|null
Parameters
$property : string
$isPublic : bool = true
Return values
string|null

getTableName()

public getTableName() : string
Return values
string

computePrimaryKey()

protected computePrimaryKey([string $primaryKey = null ]) : string
Parameters
$primaryKey : string = null
Return values
string

computeTableName()

protected computeTableName([string $tableName = null ]) : string
Parameters
$tableName : string = null
Return values
string

constructorHook()

protected constructorHook([array<string|int, mixed> $options = [] ]) : mixed
Parameters
$options : array<string|int, mixed> = []

        
On this page

Search results