public function toArray()
    {
        $data = [];
        foreach ($this->items as $key => $value) {
            if ($value instanceof BaseObjectInterface) {
                $value = $value->toArray();
            }
            $data[$key] = $value;
        }

        return $data;
    }