Add comments,__get and __set.
This commit is contained in:
parent
e9b03bcef4
commit
bb523cc04b
@ -98,8 +98,8 @@ class Contract
|
||||
/**
|
||||
* construct
|
||||
*
|
||||
* @param mixed string | Web3\Providers\Provider $provider
|
||||
* @param mixed string | stdClass | array $abi
|
||||
* @param string|\Web3\Providers\Provider $provider
|
||||
* @param string|\stdClass|array $abi
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($provider, $abi)
|
||||
@ -202,7 +202,7 @@ class Contract
|
||||
/**
|
||||
* setProvider
|
||||
*
|
||||
* @param $provider
|
||||
* @param \Web3\Providers\Provider $provider
|
||||
* @return $this
|
||||
*/
|
||||
public function setProvider($provider)
|
||||
|
@ -52,6 +52,7 @@ class Ethabi
|
||||
if (method_exists($this, $method)) {
|
||||
return call_user_func_array([$this, $method], []);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -59,7 +60,7 @@ class Ethabi
|
||||
*
|
||||
* @param string $name
|
||||
* @param mixed $value
|
||||
* @return bool
|
||||
* @return mixed
|
||||
*/
|
||||
public function __set($name, $value)
|
||||
{
|
||||
|
@ -21,10 +21,7 @@ class SolidityType
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//
|
||||
}
|
||||
// public function __construct() {}
|
||||
|
||||
/**
|
||||
* get
|
||||
@ -39,6 +36,7 @@ class SolidityType
|
||||
if (method_exists($this, $method)) {
|
||||
return call_user_func_array([$this, $method], []);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -46,7 +44,7 @@ class SolidityType
|
||||
*
|
||||
* @param string $name
|
||||
* @param mixed $value
|
||||
* @return bool
|
||||
* @return mixed;
|
||||
*/
|
||||
public function __set($name, $value)
|
||||
{
|
||||
@ -65,10 +63,7 @@ class SolidityType
|
||||
* @param array $arguments
|
||||
* @return void
|
||||
*/
|
||||
public static function __callStatic($name, $arguments)
|
||||
{
|
||||
//
|
||||
}
|
||||
// public static function __callStatic($name, $arguments) {}
|
||||
|
||||
/**
|
||||
* nestedTypes
|
||||
|
@ -44,7 +44,7 @@ class Eth
|
||||
/**
|
||||
* construct
|
||||
*
|
||||
* @param mixed string | Web3\Providers\Provider $provider
|
||||
* @param string|\Web3\Providers\Provider $provider
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($provider)
|
||||
@ -120,6 +120,7 @@ class Eth
|
||||
if (method_exists($this, $method)) {
|
||||
return call_user_func_array([$this, $method], []);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -127,7 +128,7 @@ class Eth
|
||||
*
|
||||
* @param string $name
|
||||
* @param mixed $value
|
||||
* @return bool
|
||||
* @return mixed
|
||||
*/
|
||||
public function __set($name, $value)
|
||||
{
|
||||
@ -152,7 +153,7 @@ class Eth
|
||||
/**
|
||||
* setProvider
|
||||
*
|
||||
* @param $provider
|
||||
* @param \Web3\Providers\Provider $provider
|
||||
* @return bool
|
||||
*/
|
||||
public function setProvider($provider)
|
||||
|
@ -70,6 +70,7 @@ class JSONRPC implements IRPC
|
||||
if (method_exists($this, $method)) {
|
||||
return call_user_func_array([$this, $method], []);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -77,7 +78,7 @@ class JSONRPC implements IRPC
|
||||
*
|
||||
* @param string $name
|
||||
* @param mixed $value
|
||||
* @return bool
|
||||
* @return mixed
|
||||
*/
|
||||
public function __set($name, $value)
|
||||
{
|
||||
@ -92,7 +93,7 @@ class JSONRPC implements IRPC
|
||||
/**
|
||||
* __toString
|
||||
*
|
||||
* @return array
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
@ -151,7 +152,7 @@ class JSONRPC implements IRPC
|
||||
* setArguments
|
||||
*
|
||||
* @param array $arguments
|
||||
* @return array
|
||||
* @return bool
|
||||
*/
|
||||
public function setArguments($arguments)
|
||||
{
|
||||
@ -159,6 +160,8 @@ class JSONRPC implements IRPC
|
||||
throw new InvalidArgumentException('Please use array when call setArguments.');
|
||||
}
|
||||
$this->arguments = $arguments;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -44,7 +44,7 @@ class Net
|
||||
/**
|
||||
* construct
|
||||
*
|
||||
* @param mixed string | Web3\Providers\Provider $provider
|
||||
* @param string|\Web3\Providers\Provider $provider
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($provider)
|
||||
@ -120,6 +120,7 @@ class Net
|
||||
if (method_exists($this, $method)) {
|
||||
return call_user_func_array([$this, $method], []);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -127,7 +128,7 @@ class Net
|
||||
*
|
||||
* @param string $name
|
||||
* @param mixed $value
|
||||
* @return bool
|
||||
* @return mixed
|
||||
*/
|
||||
public function __set($name, $value)
|
||||
{
|
||||
@ -152,7 +153,7 @@ class Net
|
||||
/**
|
||||
* setProvider
|
||||
*
|
||||
* @param $provider
|
||||
* @param \Web3\Providers\Provider $provider
|
||||
* @return bool
|
||||
*/
|
||||
public function setProvider($provider)
|
||||
|
@ -44,7 +44,7 @@ class Personal
|
||||
/**
|
||||
* construct
|
||||
*
|
||||
* @param mixed string | Web3\Providers\Provider $provider
|
||||
* @param string|\Web3\Providers\Provider $provider
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($provider)
|
||||
@ -120,6 +120,7 @@ class Personal
|
||||
if (method_exists($this, $method)) {
|
||||
return call_user_func_array([$this, $method], []);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -127,7 +128,7 @@ class Personal
|
||||
*
|
||||
* @param string $name
|
||||
* @param mixed $value
|
||||
* @return bool
|
||||
* @return mixed
|
||||
*/
|
||||
public function __set($name, $value)
|
||||
{
|
||||
@ -152,7 +153,7 @@ class Personal
|
||||
/**
|
||||
* setProvider
|
||||
*
|
||||
* @param $provider
|
||||
* @param \Web3\Providers\Provider $provider
|
||||
* @return bool
|
||||
*/
|
||||
public function setProvider($provider)
|
||||
|
@ -74,6 +74,7 @@ class Provider
|
||||
if (method_exists($this, $method)) {
|
||||
return call_user_func_array([$this, $method], []);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -45,6 +45,7 @@ class RequestManager
|
||||
if (method_exists($this, $method)) {
|
||||
return call_user_func_array([$this, $method], []);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -45,7 +45,7 @@ class Shh
|
||||
/**
|
||||
* construct
|
||||
*
|
||||
* @param mixed string | Web3\Providers\Provider $provider
|
||||
* @param string|\Web3\Providers\Provider $provider
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($provider)
|
||||
@ -121,6 +121,7 @@ class Shh
|
||||
if (method_exists($this, $method)) {
|
||||
return call_user_func_array([$this, $method], []);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -128,7 +129,7 @@ class Shh
|
||||
*
|
||||
* @param string $name
|
||||
* @param mixed $value
|
||||
* @return bool
|
||||
* @return mixed
|
||||
*/
|
||||
public function __set($name, $value)
|
||||
{
|
||||
@ -153,7 +154,7 @@ class Shh
|
||||
/**
|
||||
* setProvider
|
||||
*
|
||||
* @param $provider
|
||||
* @param \Web3\Providers\Provider $provider
|
||||
* @return bool
|
||||
*/
|
||||
public function setProvider($provider)
|
||||
|
@ -67,10 +67,7 @@ class Utils
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//
|
||||
}
|
||||
// public function __construct() {}
|
||||
|
||||
/**
|
||||
* toHex
|
||||
|
@ -84,7 +84,7 @@ class Web3
|
||||
/**
|
||||
* construct
|
||||
*
|
||||
* @param mixed string | Web3\Providers\Provider $provider
|
||||
* @param string|\Web3\Providers\Provider $provider
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($provider)
|
||||
@ -160,6 +160,7 @@ class Web3
|
||||
if (method_exists($this, $method)) {
|
||||
return call_user_func_array([$this, $method], []);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -167,7 +168,7 @@ class Web3
|
||||
*
|
||||
* @param string $name
|
||||
* @param mixed $value
|
||||
* @return bool
|
||||
* @return mixed
|
||||
*/
|
||||
public function __set($name, $value)
|
||||
{
|
||||
@ -192,7 +193,7 @@ class Web3
|
||||
/**
|
||||
* setProvider
|
||||
*
|
||||
* @param $provider
|
||||
* @param \Web3\Providers\Provider $provider
|
||||
* @return bool
|
||||
*/
|
||||
public function setProvider($provider)
|
||||
|
Loading…
Reference in New Issue
Block a user