<?php

namespace Elementor\Modules\AtomicWidgets\PropTypes;

use Elementor\Modules\AtomicWidgets\PropTypes\Base\Object_Prop_Type;
use Elementor\Modules\AtomicWidgets\Styles\Size_Constants;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Border_Radius_Prop_Type extends Object_Prop_Type {
	public static function get_key(): string {
		return 'border-radius-v2';
	}

	protected function define_shape(): array {
		$units = Size_Constants::border();

		return [
			'start-start' => Size_Prop_Type::make()->units( $units ),
			'start-end' => Size_Prop_Type::make()->units( $units ),
			'end-start' => Size_Prop_Type::make()->units( $units ),
			'end-end' => Size_Prop_Type::make()->units( $units ),
		];
	}
}
