src/Core/ArrayMap.php
public function toArray($array = array())
    {
        if (empty($array)) {
            $array = $this->getArrayCopy();
        }

        foreach ($array as &$value) {
            if ($value instanceof self) {
                $value = $value->toArray();
            }
        }

        return $array;
    }
public function toArray($array = array())
    {
        if (empty($array)) {
            $array = $this->getArrayCopy();
        }

        foreach ($array as &$value) {
            if ($value instanceof self) {
                $value = $value->toArray();
            }
        }

        return $array;
    }
转换为数组

@param array $array
@return array