<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\PageFields\Story;

use AuxCF\Entities\Field\RadioFieldEntity;
use AuxCF\Entities\Settings\Enum\OperatorEnum;
use WP_AUX\Enum\StoryHeaderTypeEnum;
use WP_AUX\Enum\StoryLayoutEnum;

class StoryLayoutFieldEntity extends RadioFieldEntity
{
  public static string $name = 'aux_story_layout';
	public static string $nickname = 'layout';

  protected string $label = 'Layout';
  protected mixed $choices = StoryLayoutEnum::class;
  protected mixed $defaultValue = StoryLayoutEnum::SidebarRight;

  protected array $initConditionalLogic = [
    [
      [ StoryHeaderTypeFieldEntity::class, OperatorEnum::EQUALS, StoryHeaderTypeEnum::Standard ],
    ]
  ];
}
