class DataModel extends DataModel

Entity data model

Properties

protected array $fields from DataModel
protected boolean $isEncrypted

Methods

__construct(stdClass $object = null)

Constructor

from Model
multitype:
getProperties()

Get the Model Properties

from Model
setOptions(stdClass $object = null, array $options = null)

Sets Properties with matching Array Values

stdClass
getPublic(array $publics = array('fields', 'isEncrypted', 'identities', '_type'))

Convert the Model into stdClass Object

toJson()

No description

from Model
mixed:string
getFields()

Fields Getter

from DataModel
validate()

Object Validation

from DataModel
mixed:string|NULL
getField(boolean $toWawi = false, string $key)

Get a Model Member Name

from DataModel
map(boolean $toWawi = false, stdClass $obj = null)

Object Mapping

from DataModel
getModelType()

No description

boolean
isEncrypted()

Encrypted Status

setIdentity(string $propertyName, string|null $endpoint = null, int|null $host = null)

No description

setProperty($name, $value, $type)

No description

validateType($value, $type)

No description

Details

in Model at line 23
__construct(stdClass $object = null)

Constructor

Parameters

stdClass $object

in Model at line 33
multitype: getProperties()

Get the Model Properties

Return Value

multitype: string

at line 172
Model setOptions(stdClass $object = null, array $options = null)

Sets Properties with matching Array Values

Parameters

stdClass $object
array $options

Return Value

Model

at line 70
stdClass getPublic(array $publics = array('fields', 'isEncrypted', 'identities', '_type'))

Convert the Model into stdClass Object

Parameters

array $publics

Return Value

stdClass $object

in Model at line 115
toJson()

in DataModel at line 35
mixed:string getFields()

Fields Getter

Return Value

mixed:string

in DataModel at line 45
validate()

Object Validation

Exceptions

SchemaException

in DataModel at line 59
mixed:string|NULL getField(boolean $toWawi = false, string $key)

Get a Model Member Name

Parameters

boolean $toWawi
string $key

Return Value

mixed:string|NULL

in DataModel at line 81
map(boolean $toWawi = false, stdClass $obj = null)

Object Mapping

Parameters

boolean $toWawi
stdClass $obj Object to map

at line 42
DataType getModelType()

Return Value

DataType

at line 59
boolean isEncrypted()

Encrypted Status

Return Value

boolean

at line 123
setIdentity(string $propertyName, string|null $endpoint = null, int|null $host = null)

Parameters

string $propertyName
string|null $endpoint
int|null $host

at line 179
protected setProperty($name, $value, $type)

Parameters

$name
$value
$type

at line 190
protected validateType($value, $type)

Parameters

$value
$type