Ethereum PHP
PHP interface to Ethereum JSON-RPC API.
generator-commons.php File Reference

Go to the source code of this file.

Functions

 makeClassName ($input)
 
 getSchema ()
 
 printMe ($title, $content=null)
 
 addUseStatement ($type, &$useStatements)
 

Detailed Description

Helper functions to generate the API.

Definition in file generator-commons.php.

Function Documentation

◆ addUseStatement()

addUseStatement (   $type,
$useStatements 
)
Todo:
This is actually very weired in the Schema: We have an "or" in Return values.

Definition at line 75 of file generator-commons.php.

◆ getSchema()

getSchema ( )

Get Ethereum JsonRPC schema definition.

Returns
array resources/ethjs-schema.json

Definition at line 47 of file generator-commons.php.

◆ makeClassName()

makeClassName (   $input)

Make Class name.

Parameters
string$inputMethod name
Returns
string Derived Class name.

Definition at line 32 of file generator-commons.php.

◆ printMe()

printMe (   $title,
  $content = null 
)

printMe().

Parameters
string$titleHeading.
mixed$contentArray/String content to be inspected.

Definition at line 62 of file generator-commons.php.