标签: php
我想声明一个PHP函数,它具有一个类数组参数,如下所示:
private $children = []; public function __construct(Node[] $children) { $this->children = $children; $this->node_type = static::NODE_TYPE_LEAF; }
我该怎么做?