<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\PageFields\Page;

use AuxCF\Entities\Field\RadioFieldEntity;
use WP_AUX\Enum\PageMediaEnum;
use AuxCF\Entities\Settings\Enum\OperatorEnum;
use WP_AUX\Enum\PageHeaderTypeEnum;
use AuxCF\Entities\Field\Enum\ChoicesFieldLayoutEnum;

class PageMediaTypeFieldEntity extends RadioFieldEntity
{
  public static string $name = 'aux_page_media_type';
	public static string $nickname = 'media_type';

  protected string $label = 'Page Media Option';
  protected mixed $choices = PageMediaEnum::class;
  protected ChoicesFieldLayoutEnum $layout = ChoicesFieldLayoutEnum::Horizontal;

  protected array $initConditionalLogic = [
    [
      [ PageHeaderTypeFieldEntity::class, OperatorEnum::EQUALS, PageHeaderTypeEnum::Standard ],
    ],
  ];
}
