class FieldValue
Field value is an object that holds json values for a DvsField model
Methods
|
__construct(string $json)
Create a new FieldValue object from json string |
||
| string |
__toString()
Convert to a empty string to avoid null pointer exceptions |
|
| FieldValue |
__get(string $name)
Avoids null pointer exceptions by treating this like the empty string we only ever reach this magical method when we have attempted to fetch a key that does not exist on this FieldValue object |
|
| void |
merge(array $input)
Merges in the array data into the field object json |
|
| string |
toJSON()
Returns this object as json string |
|
| mixed |
__call(string $name, mixed $args)
Allows us to set default values on a key if we do not have that key set in this FieldValue object |
Details
at line 22
public
__construct(string $json)
Create a new FieldValue object from json string
at line 39
public string
__toString()
Convert to a empty string to avoid null pointer exceptions
at line 54
public FieldValue
__get(string $name)
Avoids null pointer exceptions by treating this like the empty string we only ever reach this magical method when we have attempted to fetch a key that does not exist on this FieldValue object
at line 66
public void
merge(array $input)
Merges in the array data into the field object json
at line 88
public string
toJSON()
Returns this object as json string
at line 102
public mixed
__call(string $name, mixed $args)
Allows us to set default values on a key if we do not have that key set in this FieldValue object