* @since 1.47.0 */ namespace AdvancedAds\Groups\Types; use AdvancedAds\Groups\Group_Ordered; use AdvancedAds\Interfaces\Group_Type; defined( 'ABSPATH' ) || exit; /** * Type Ordered. */ class Ordered implements Group_Type { /** * Get the unique identifier (ID) of the group type. * * @return string The unique ID of the group type. */ public function get_id(): string { return 'ordered'; } /** * Get the class name of the object as a string. * * @return string */ public function get_classname(): string { return Group_Ordered::class; } /** * Get the title or name of the group type. * * @return string The title of the group type. */ public function get_title(): string { return __( 'Ordered ads', 'advanced-ads' ); } /** * Get a description of the group type. * * @return string The description of the group type. */ public function get_description(): string { return __( 'Display ads with the highest ad weight first', 'advanced-ads' ); } /** * Check if this group type requires premium. * * @return bool True if premium is required; otherwise, false. */ public function is_premium(): bool { return false; } /** * Get the URL for upgrading to this group type. * * @return string The upgrade URL for the group type. */ public function get_image(): string { return ADVADS_BASE_URL . 'assets/img/group-types/ordered.svg'; } }