Base class for document fields.
Properties¶
$name
¶
Field.php
|
|
$name
¶
Field.php
:
25
Name of the document field. Will be used to query this field.
|
|
$type
¶
Field.php
|
|
$type
¶
Field.php
:
41
Type of the search field.
|
|
$value
¶
Field.php
|
|
$value
¶
Field.php
:
34
Value of the document field.
|
|
Might be about anything depending on the type of the document field.
Methods¶
__construct()
¶
Field.php
:
48
Construct object optionally with a set of properties.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$name | string | - | - |
$value | mixed | - | - |
$type | FieldType | - | - |
getName()
¶
Field.php
:
56
|
|
Return values
string
getType()
¶
Field.php
:
69
|
|
Return values
getValue()
¶
Field.php
:
64
|
|
getProperties()
¶
ValueObject.php
:
53
Function where list of properties are returned.
|
|
Used by attributes(), override to add dynamic properties
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$dynamicProperties | array<string|int, mixed> | [] |
Additional dynamic properties exposed on the object |
Return values
array<string|int, mixed>