FlexIdentifier
extends Identifier
in package
Interface IdentifierInterface
Tags
Table of Contents
Properties
- $keyField : string
- $object : FlexObjectInterface|null
Methods
- __construct() : mixed
- IdentifierInterface constructor.
- __debugInfo() : array<string|int, mixed>
- createFromObject() : FlexIdentifier<string|int, T>
- getId() : string
- Get identifier's ID.
- getObject() : T
- getType() : string
- Get identifier's type.
- jsonSerialize() : array<string|int, mixed>
- setObject() : void
Properties
$keyField
private
string
$keyField
$object
private
FlexObjectInterface|null
$object
= null
Methods
__construct()
IdentifierInterface constructor.
public
__construct(string $id, string $type[, string $keyField = 'key' ]) : mixed
Parameters
- $id : string
- $type : string
- $keyField : string = 'key'
__debugInfo()
public
__debugInfo() : array<string|int, mixed>
Return values
array<string|int, mixed>createFromObject()
public
static createFromObject(FlexObjectInterface $object) : FlexIdentifier<string|int, T>
Parameters
- $object : FlexObjectInterface
Return values
FlexIdentifier<string|int, T>getId()
Get identifier's ID.
public
getId() : string
Tags
Return values
stringgetObject()
public
getObject() : T
Return values
TgetType()
Get identifier's type.
public
getType() : string
Tags
Return values
stringjsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>setObject()
public
setObject(T $object) : void
Parameters
- $object : T