<?php
/**
 * Base for Sifency Elementor V4 atomic widgets (extends Elementor Atomic_Widget_Base).
 *
 * @package Sifency_Addons
 */
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Abstract base: categories default to Sifency panel groups instead of v4-elements only.
 */
abstract class Sifency_Atomic_Widget_Base extends \Elementor\Modules\AtomicWidgets\Elements\Base\Atomic_Widget_Base {

	/**
	 * Elementor categories for this widget (first is primary in panel).
	 *
	 * @var string[]
	 */
	protected $sifency_widget_categories = array( 'sifency-addons-widgets' );

	public function get_categories(): array {
		return ! empty( $this->sifency_widget_categories )
			? $this->sifency_widget_categories
			: array( 'v4-elements' );
	}
}
