Definition at line 12 of file EthDataTypeInterface.php.
◆ getDataLengthType()
static getDataLengthType |
( |
| ) |
|
|
static |
◆ getProperty()
getProperty |
( |
string |
$property = 'value' , |
|
|
bool |
$hex_val = false |
|
) |
| |
Get property value.
- Parameters
-
string | $property | Name of the property. Defaults to 'value'. |
bool | $hex_val | Set to TRUE to get the hexadecimal representation of the property. |
- Exceptions
-
Exception | If something is wrong. |
- Returns
- string|int|array The property value.*
Implemented in EthDataType.
◆ getTypeClass()
static getTypeClass |
( |
string |
$type, |
|
|
bool |
$typed_constructor = false |
|
) |
| |
|
static |
Determine type class name for primitive and complex data types.
- Parameters
-
string | $type | Type containing Schema name. |
bool | $typed_constructor | If true this function will return "array" for types of array($type), instead of $type. |
- Returns
- string Class name of type.
- Exceptions
-
Exception | Could not determine type class |
Implemented in EthDataType.
◆ isPrimitive()
Check if Type is a primitive type.
- Returns
- bool True if data type is primitive.
Implemented in EthD, and EthDataType.
◆ setValue()
setValue |
( |
|
$val, |
|
|
array |
$params = [] |
|
) |
| |
Set a value with validation.
Validation is implemented in subclasses.
- Parameters
-
mixed | $val | Value to set. |
array | $params | Array with optional keyed arguments. |
- Exceptions
-
Exception | If validation is not implemented for type. |
Implemented in EthDataType.
◆ toArray()
Array of the value types.
- Returns
- array Associative array with properties mapped to value types.
Implemented in EthD, Block, Transaction, FilterChange, Receipt, SHHFilterChange, SHHMessage, CallTransaction, EstimateTransaction, SendTransaction, SHHPost, Filter, EthSyncing, EthFilter, and SHHFilter.
The documentation for this interface was generated from the following file: