oont-contents/plugins/flexible-shipping/vendor_prefixed/wpdesk/wp-abtesting/src/ABVariant.php
2025-02-08 15:10:23 +01:00

26 lines
564 B
PHP

<?php
namespace FSVendor\WPDesk\ABTesting;
/**
* Specific variant should know what functionalities should be on/off.
*
* @package WPDesk\ABTesting
*/
interface ABVariant
{
/**
* Checks if a variant does have a given functionality working.
*
* @param string $functionality
*
* @return bool
*/
public function is_on($functionality);
/**
* Returns the variant id (can be numeric). For example for standard AB testing it would be A or B.
*
* @return string
*/
public function get_variant_id();
}