<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\FieldGroups;

use AuxCF\Entities\FieldGroupEntity;
use WP_AUX\Entities\AuxCF\Fields\CaptionedMedia\CaptionedMediaImageFieldEntity;
use WP_AUX\Entities\AuxCF\Fields\CaptionedMedia\CaptionedMediaVideoFieldEntity;
use WP_AUX\Entities\AuxCF\Fields\CustomContent\CaptionedMedia\CaptionedMediaTypeFieldEntity;
use WP_AUX\Entities\AuxCF\Fields\CustomContent\CaptionedMedia\CaptionedMediaCaptionFieldEntity;
use WP_AUX\Entities\AuxCF\Fields\CustomContent\CaptionedMedia\CaptionedMediaCreditFieldEntity;
use WP_AUX\Entities\AuxCF\Fields\CaptionedMedia\CaptionedMediaDisplayFieldEntity;

class AcfCaptionedMediaEntity extends FieldGroupEntity
{
  public static string $key = 'aux_captioned_media';
  public static string $documentationPath = 'components-captioned-media-about-captioned-media--docs';

  protected array $initFields = [
    CaptionedMediaDisplayFieldEntity::class,
    CaptionedMediaTypeFieldEntity::class,
    CaptionedMediaImageFieldEntity::class,
    CaptionedMediaVideoFieldEntity::class,
    CaptionedMediaCaptionFieldEntity::class,
    CaptionedMediaCreditFieldEntity::class,
  ];

  protected array $deprecatedFields = [
    'captioned_media_image' => [
      'label' => 'Image',
      'replaced_with' => CaptionedMediaImageFieldEntity::class
    ],
    'captioned_media_video_link' => [
      'label' => 'Video Link',
      'replaced_with' => CaptionedMediaVideoFieldEntity::class
    ],
  ];
}
