<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\PageFields\Story;

use AuxCF\Entities\Field\Enum\RelationshipFieldReturnFormatEnum;
use AuxCF\Entities\Field\RelationshipFieldEntity;

class StoryRelatedFieldEntity extends RelationshipFieldEntity
{
  public static string $name = 'aux_story_related_posts';
  public static string $nickname = 'related_posts';

  protected string $label = 'Related News';
  protected string $instructions = '(optional) Related news are automatically generated by topic, category, and tag. Manually relate news posts with this field. Two related posts will be displayed. If less than two are selected here, the rest will be automatically generated.';
  protected ?int $max = 2;
  protected array $postType = ['news'];
  protected RelationshipFieldReturnFormatEnum $returnFormat = RelationshipFieldReturnFormatEnum::Object;
}
