public function getData()
    {
        if ($this->vars['compound'] && $this->vars['value'] !== null) {
            return array_map(function (DataViewView $view) {
                return $view->getData();
            }, $this->children);
        }

        return $this->vars['value'];
    }