<commit_before><?php
namespace Plenty\Modules\Webshop\ItemSearch\Helpers;


/**
 * ResultFieldTemplate
 */
abstract class ResultFieldTemplate 
{

	const TEMPLATE_LIST_ITEM = 'Webshop.ResultFields.ListItem';

	const TEMPLATE_SINGLE_ITEM = 'Webshop.ResultFields.SingleItem';

	const TEMPLATE_BASKET_ITEM = 'Webshop.ResultFields.BasketItem';

	const TEMPLATE_AUTOCOMPLETE_ITEM_LIST = 'Webshop.ResultFields.AutoCompleteListItem';

	const TEMPLATE_CATEGORY_TREE = 'Webshop.ResultFields.CategoryTree';

	const TEMPLATE_VARIATION_ATTRIBUTE_MAP = 'Webshop.ResultFields.VariationAttributeMap';

	/**
	 * Get the path to result fields file from template/ theme
	 */
	abstract public static function get(
		string $template
	):string;

	abstract public static function load(
		 $template
	);

	/**
	 * Set the path of a template to read result fields from.
	 */
	abstract public function setTemplate(
		string $event, 
		string $template
	);

	/**
	 * Set multiple templates to read result fields from.
	 */
	abstract public function setTemplates(
		array $templateMap
	);

	/**
	 * Add required fields to variation search requests.
	 */
	abstract public function requireFields(
		 $event, 
		 $field = null
	);

}<commit_msg>Automated interface update 2020-04-27_09:43:14<commit_after><?php
namespace Plenty\Modules\Webshop\ItemSearch\Helpers;


/**
 * ResultFieldTemplate
 */
abstract class ResultFieldTemplate 
{

	const TEMPLATE_LIST_ITEM = 'Webshop.ResultFields.ListItem';

	const TEMPLATE_SINGLE_ITEM = 'Webshop.ResultFields.SingleItem';

	const TEMPLATE_BASKET_ITEM = 'Webshop.ResultFields.BasketItem';

	const TEMPLATE_AUTOCOMPLETE_ITEM_LIST = 'Webshop.ResultFields.AutoCompleteListItem';

	const TEMPLATE_CATEGORY_TREE = 'Webshop.ResultFields.CategoryTree';

	const TEMPLATE_VARIATION_ATTRIBUTE_MAP = 'Webshop.ResultFields.VariationAttributeMap';

	/**
	 * Get the path to result fields file from template/ theme
	 */
	abstract public static function get(
		string $template
	):string;

	abstract public static function load(
		 $template
	);

	/**
	 * Set the path of a template to read result fields from.
	 */
	abstract public function setTemplate(
		string $event, 
		string $template, 
		bool $overwriteExistingData = true
	);

	/**
	 * Set multiple templates to read result fields from.
	 */
	abstract public function setTemplates(
		array $templateMap, 
		bool $overwriteExistingData = true
	);

	/**
	 * Add required fields to variation search requests.
	 */
	abstract public function requireFields(
		 $event, 
		 $field = null
	);

}
{'fraction_non_alphanumeric': 0.0889413616686344, 'fraction_numerical': 0.005509641873278237, 'mean_word_length': 4.408510638297872, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5933601', 'n_tokens_mistral': 830, 'n_tokens_neox': 757, 'n_words': 201}