66 lines
1.2 KiB
PHP
66 lines
1.2 KiB
PHP
<?php
|
|
|
|
/**
|
|
* This file is part of web3.php package.
|
|
*
|
|
* (c) Kuan-Cheng,Lai <alk03073135@gmail.com>
|
|
*
|
|
* @author Peter Lai <alk03073135@gmail.com>
|
|
* @license MIT
|
|
*/
|
|
|
|
namespace Web3\Methods\Eth;
|
|
|
|
use InvalidArgumentException;
|
|
use Web3\Methods\EthMethod;
|
|
use Web3\Validators\QuantityValidator;
|
|
use Web3\Validators\BooleanValidator;
|
|
use Web3\Formatters\OptionalQuantityFormatter;
|
|
use Web3\Formatters\BooleanFormatter;
|
|
|
|
class GetBlockByNumber extends EthMethod
|
|
{
|
|
/**
|
|
* validators
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $validators = [
|
|
QuantityValidator::class, BooleanValidator::class
|
|
];
|
|
|
|
/**
|
|
* inputFormatters
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $inputFormatters = [
|
|
OptionalQuantityFormatter::class, BooleanFormatter::class
|
|
];
|
|
|
|
/**
|
|
* outputFormatters
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $outputFormatters = [];
|
|
|
|
/**
|
|
* defaultValues
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $defaultValues = [];
|
|
|
|
/**
|
|
* construct
|
|
*
|
|
* @param string $method
|
|
* @param array $arguments
|
|
* @return void
|
|
*/
|
|
// public function __construct($method='', $arguments=[])
|
|
// {
|
|
// parent::__construct($method, $arguments);
|
|
// }
|
|
} |