Ethereum PHP
PHP interface to Ethereum JSON-RPC API.
Select version
SHHFilter.php
Go to the documentation of this file.
1
<?php
11
namespace
Ethereum\DataType
;
12
18
class
SHHFilter
extends
EthDataType
{
19
23
public
$topics
;
24
28
public
$to
;
29
34
public
function
__construct
(array
$topics
,
EthD
$to
= null) {
35
$this->topics =
$topics
;
36
$this->to =
$to
;
37
}
38
42
public
static
function
getTypeArray
() {
43
return
array(
44
'topics'
=>
'[EthD]'
,
45
'to'
=>
'EthD'
,
46
);
47
}
48
52
public
function
toArray
() {
53
$return = [];
54
(!is_null($this->topics)) ? $return[
'topics'
] =
Ethereum::valueArray
($this->topics,
'EthD'
) : array();
55
(!is_null($this->to)) ? $return[
'to'
] = $this->to->hexVal() : NULL;
56
return
$return;
57
}
58
}
Ethereum\DataType\SHHFilter\toArray
toArray()
Definition:
SHHFilter.php:52
Ethereum\DataType\SHHFilter\__construct
__construct(array $topics, EthD $to=null)
Definition:
SHHFilter.php:34
Ethereum\DataType\SHHFilter\$topics
$topics
Definition:
SHHFilter.php:23
Ethereum\DataType\SHHFilter\getTypeArray
static getTypeArray()
Definition:
SHHFilter.php:42
Ethereum\DataType
Definition:
Block.php:11
Ethereum\Ethereum\valueArray
static valueArray(array $values, string $typeClass)
Definition:
Ethereum.php:571
Ethereum\DataType\SHHFilter\$to
$to
Definition:
SHHFilter.php:28
Ethereum\DataType\SHHFilter
Definition:
SHHFilter.php:18
Ethereum\DataType\EthDataType
Definition:
EthDataType.php:44
Ethereum\DataType\EthD
Definition:
EthD.php:15
src
DataType
SHHFilter.php
Generated by
1.8.13