| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <?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 blockchain\web3\src\Methods\Eth;
- use InvalidArgumentException;
- use blockchain\web3\src\Methods\EthMethod;
- use blockchain\web3\src\Validators\QuantityValidator;
- use blockchain\web3\src\Formatters\OptionalQuantityFormatter;
- use blockchain\web3\src\Formatters\BigNumberFormatter;
- class GetBlockTransactionCountByNumber extends EthMethod
- {
- /**
- * validators
- *
- * @var array
- */
- protected $validators = [
- QuantityValidator::class
- ];
- /**
- * inputFormatters
- *
- * @var array
- */
- protected $inputFormatters = [
- OptionalQuantityFormatter::class
- ];
- /**
- * outputFormatters
- *
- * @var array
- */
- protected $outputFormatters = [
- BigNumberFormatter::class
- ];
- /**
- * defaultValues
- *
- * @var array
- */
- protected $defaultValues = [
- 'latest'
- ];
- /**
- * construct
- *
- * @param string $method
- * @param array $arguments
- * @return void
- */
- // public function __construct($method='', $arguments=[])
- // {
- // parent::__construct($method, $arguments);
- // }
- }
|