<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\PageFieldGroups;

use AuxCF\Entities\FieldGroup\Enum\FieldGroupPositionEnum;
use AuxCF\Entities\FieldGroup\FieldGroupPostTypeLocationEntity;
use AuxCF\Entities\FieldGroupEntity;
use WP_AUX\Entities\AuxCF\PageFields\Story\StoryContactFieldEntity;
use WP_AUX\Entities\AuxCF\PageFields\Story\StoryHeaderTypeFieldEntity;
use WP_AUX\Entities\AuxCF\PageFields\Story\StoryLayoutFieldEntity;
use WP_AUX\Entities\AuxCF\PageFields\Story\StoryRelatedFieldEntity;
use WP_AUX\Entities\AuxCF\PageFields\Story\StorySourceFieldEntity;

class AcfStoryPageGroupEntity extends FieldGroupEntity
{
  public static string $key = 'aux_story_page';
  protected string $title = 'Story Options';
  protected FieldGroupPositionEnum $position = FieldGroupPositionEnum::Normal;

  protected array $initFields = [
    StoryHeaderTypeFieldEntity::class,
    StoryLayoutFieldEntity::class,
    StorySourceFieldEntity::class,
    StoryContactFieldEntity::class,
    StoryRelatedFieldEntity::class,
  ];

  protected array $initLocations = [
    [ FieldGroupPostTypeLocationEntity::class, 'news' ],
  ];
}
