Record
extends RowGateway
in package
implements
RecordEntityInterface
Row Definition for user
Tags
Interfaces, Classes, Traits and Enums
- RecordEntityInterface
- Entity model interface for record table
Table of Contents
- $id : int
- $record_id : string
- $source : string
- $updated : string
- $version : string
- __construct() : mixed
- Constructor
- getData() : string|null
- Get record data.
- getId() : int|null
- Get identifier (returns null for an uninitialized or non-persisted object).
- getPrimaryKeyColumn() : array<string|int, mixed>
- Retrieve primary key information.
- getRecordId() : string|null
- Get record id.
- getSource() : string|null
- Get record source.
- getUpdated() : DateTime
- Get updated date.
- getVersion() : string
- Get record version.
- setData() : RecordEntityInterface
- Set record data.
- setRecordId() : RecordEntityInterface
- Set record id.
- setSource() : RecordEntityInterface
- Set record source.
- setUpdated() : RecordEntityInterface
- Set updated date.
- setVersion() : RecordEntityInterface
- Set record version.
Properties
$id
public
int
$id
$record_id
public
string
$record_id
$source
public
string
$source
$updated
public
string
$updated
$version
public
string
$version
Methods
__construct()
Constructor
public
__construct(Adapter $adapter) : mixed
Parameters
- $adapter : Adapter
-
Database adapter
Return values
mixed —getData()
Get record data.
public
getData() : string|null
Return values
string|null —getId()
Get identifier (returns null for an uninitialized or non-persisted object).
public
getId() : int|null
Return values
int|null —getPrimaryKeyColumn()
Retrieve primary key information.
public
getPrimaryKeyColumn() : array<string|int, mixed>
Return values
array<string|int, mixed> —getRecordId()
Get record id.
public
getRecordId() : string|null
Return values
string|null —getSource()
Get record source.
public
getSource() : string|null
Return values
string|null —getUpdated()
Get updated date.
public
getUpdated() : DateTime
Return values
DateTime —getVersion()
Get record version.
public
getVersion() : string
Return values
string —setData()
Set record data.
public
setData(string|null $recordData) : RecordEntityInterface
Parameters
- $recordData : string|null
-
Record data
Return values
RecordEntityInterface —setRecordId()
Set record id.
public
setRecordId(string|null $recordId) : RecordEntityInterface
Parameters
- $recordId : string|null
-
Record id
Return values
RecordEntityInterface —setSource()
Set record source.
public
setSource(string|null $recordSource) : RecordEntityInterface
Parameters
- $recordSource : string|null
-
Record source
Return values
RecordEntityInterface —setUpdated()
Set updated date.
public
setUpdated(DateTime $dateTime) : RecordEntityInterface
Parameters
- $dateTime : DateTime
-
Updated date
Return values
RecordEntityInterface —setVersion()
Set record version.
public
setVersion(string $recordVersion) : RecordEntityInterface
Parameters
- $recordVersion : string
-
Record version