phprs\util\NewThenInit::initArgs PHP Method

initArgs() public method

初始化
public initArgs ( array $args )
$args array 参数列表
    public function initArgs($args)
    {
        $cnst = $this->refl->getConstructor();
        if ($cnst !== null) {
            $cnst->invokeArgs($this->obj, $args);
        } else {
            Verify::isTrue(count($args) === 0, $this->refl->getName() . ' no constructor found with ' . func_num_args() . ' params');
        }
    }