<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\Video;

use AuxCF\Entities\Field\NumberFieldEntity;
use AuxCF\Entities\Settings\Enum\OperatorEnum;

class VideoHeightFieldEntity extends NumberFieldEntity
{
  public static string $name = 'video_height';
  protected string $label = 'Height';
  protected string $append = 'px';
  protected ?int $min = 0;

  protected array $initConditionalLogic = [
    [
      [ VideoLayoutFieldEntity::class, OperatorEnum::EQUALS, 'custom' ],
      [ VideoSourceFieldEntity::class, OperatorEnum::EQUALS, 'external' ]
    ],
  ];
}
