<?php

namespace DropshippingXmlFreeVendor\WPDesk\Library\DropshippingXmlCore\Form\Fields\Component;

class AcfGroupComponent extends \DropshippingXmlFreeVendor\WPDesk\Forms\Field\BasicField
{
    /** @var array[] ACF field definitions, e.g. [key, name, label, type] */
    private array $acf_fields = [];
    private string $group_key = '';
    private string $group_title = '';
    public function set_acf_group(string $key, string $title, array $fields): self
    {
        $this->group_key = $key;
        $this->group_title = $title;
        $this->acf_fields = $fields;
        return $this;
    }
    public function get_group_key(): string
    {
        return $this->group_key;
    }
    public function get_group_title(): string
    {
        return $this->group_title;
    }
    public function get_acf_fields(): array
    {
        return $this->acf_fields;
    }
    public function get_template_name(): string
    {
        return 'acf-group-component';
    }
}
