Ethereum PHP
PHP interface to Ethereum JSON-RPC API.
EmittedEvent Class Reference
+ Inheritance diagram for EmittedEvent:
+ Collaboration diagram for EmittedEvent:

Public Member Functions

 __construct ($eventOrAbi, FilterChange $filterChange, Transaction $tx)
 
 getLog ()
 
 getContract ()
 
 setResponse ($response)
 
 getResponse ()
 
 getEmitter ()
 
 hasData ()
 
 getData ()
 
 getRawData ()
 
 getTransaction ()
 
 toArray ()
 
- Public Member Functions inherited from Event
 __construct ($abiItem)
 
 decode (FilterChange $filterChange)
 
 getSignature ()
 
 getTopic ()
 
 getHandler ()
 
 getAbi ()
 
 getName ()
 

Protected Attributes

 $data = null
 
 $transaction = null
 
 $contractAddress
 
 $emitterAddress
 
 $response
 
- Protected Attributes inherited from Event
 $name
 
 $anonymous
 
 $inputs
 
 $abi
 

Additional Inherited Members

- Static Public Member Functions inherited from EthereumStatic
static getMethodSignature ($input)
 
static phpKeccak256 ($string)
 
static sha3 ($string)
 
static isValidFunction ($input)
 
static getDefinition ()
 
static isValidHexQuantity ($str)
 
static isValidHexData ($str)
 
static isValidAddress ($address, $throw=false)
 
static hasHexPrefix ($str)
 
static removeHexPrefix ($str)
 
static ensureHexPrefix ($str)
 
static convertCurrency (float $amount, string $from='wei', string $to='ether')
 

Detailed Description

Definition at line 8 of file EmittedEvent.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $eventOrAbi,
FilterChange  $filterChange,
Transaction  $tx 
)

EmittedEvent constructor.

Parameters
$eventOrAbi
\Ethereum\DataType\FilterChange$filterChange
\Ethereum\DataType\Transaction$tx
Exceptions

Definition at line 28 of file EmittedEvent.php.

References $abi.

Member Function Documentation

◆ getContract()

getContract ( )
Returns
string

Definition at line 56 of file EmittedEvent.php.

◆ getData()

getData ( )
Returns
array|null

Definition at line 94 of file EmittedEvent.php.

◆ getEmitter()

getEmitter ( )
Returns
string

Definition at line 78 of file EmittedEvent.php.

◆ getLog()

getLog ( )
Returns
string

Definition at line 48 of file EmittedEvent.php.

◆ getRawData()

getRawData ( )

Array of hex values.

Returns
array

Definition at line 104 of file EmittedEvent.php.

◆ getResponse()

getResponse ( )
Returns
mixed

Definition at line 71 of file EmittedEvent.php.

◆ getTransaction()

getTransaction ( )
Returns

Definition at line 116 of file EmittedEvent.php.

◆ hasData()

hasData ( )
Returns
bool

Definition at line 86 of file EmittedEvent.php.

◆ setResponse()

setResponse (   $response)
Parameters
$responseAny JSON encodable data.

Definition at line 64 of file EmittedEvent.php.

◆ toArray()

toArray ( )
Returns
array

Definition at line 124 of file EmittedEvent.php.

Member Data Documentation

◆ $contractAddress

$contractAddress
protected

Definition at line 13 of file EmittedEvent.php.

◆ $data

$data = null
protected

Definition at line 11 of file EmittedEvent.php.

◆ $emitterAddress

$emitterAddress
protected

Definition at line 14 of file EmittedEvent.php.

◆ $response

$response
protected

Definition at line 17 of file EmittedEvent.php.

◆ $transaction

$transaction = null
protected

Definition at line 12 of file EmittedEvent.php.


The documentation for this class was generated from the following file: