SpecFixture
extends Spec
Table of Contents
Constants
-
DEFAULT_PRIMARY_KEY
= 'id'
Properties
-
$options
: mixed
-
$primaryKey
: string
-
$reflection
: ReflectionClass
-
$tableName
: string
Methods
-
__construct()
: mixed
-
getPrimaryKey()
: string
-
getSetter()
: string|null
-
getTableName()
: string
-
computePrimaryKey()
: string
-
computeTableName()
: string
-
constructorHook()
: mixed
DEFAULT_PRIMARY_KEY
public
mixed
DEFAULT_PRIMARY_KEY
= 'id'
$options
public
mixed
$options
$primaryKey
private
string
$primaryKey
$reflection
private
ReflectionClass
$reflection
$tableName
private
string
$tableName
__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
getSetter()
public
getSetter(string $property[, bool $isPublic = true ]) : string|null
Parameters
-
$property
: string
-
-
$isPublic
: bool
= true
-
Return values
string|null
getTableName()
public
getTableName() : string
computePrimaryKey()
protected
computePrimaryKey([string $primaryKey = null ]) : string
Parameters
-
$primaryKey
: string
= null
-
computeTableName()
protected
computeTableName([string $tableName = null ]) : string
Parameters
-
$tableName
: string
= null
-
constructorHook()
protected
constructorHook([array<string|int, mixed> $options = [] ]) : mixed
Parameters
-
$options
: array<string|int, mixed>
= []
-