<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\FactoidCollection;

use AuxCF\Entities\Field\Enum\RepeaterFieldLayoutEnum;
use AuxCF\Entities\Field\RepeaterFieldEntity;

class FactoidsFieldEntity extends RepeaterFieldEntity
{
  public static string $name = 'factoid';
  protected string $label = 'Factoids';
  protected RepeaterFieldLayoutEnum $layout = RepeaterFieldLayoutEnum::Block;
  protected int $min = 1;
  protected string $buttonLabel = 'Add Factoid';

  protected array $initFields = [
    FactoidHeadingFieldEntity::class,
    FactoidHeadersSwitchFieldEntity::class,
    FactoidSuperheaderFieldEntity::class,
    FactoidSubheaderFieldEntity::class,
    FactoidContentFieldEntity::class,
    FactoidIconFieldEntity::class,
    FactoidCitationFieldEntity::class,
  ];
}
