<?php
/**
 * @package ThemeREX\AutoDealer
 */

declare(strict_types=1);

namespace ThemeREX\AutoDealer\Elementor\DynamicTags;

if ( ! class_exists( '\Elementor\Core\DynamicTags\Tag' ) ) {
	return;
}

class ModelTag extends AbstractVehicleTag {

	protected string $tag_name  = 'trx-ad-model';
	protected string $tag_title = 'Vehicle Model';

	public function __construct( array $data = array() ) {
		parent::__construct( $data );
		$this->tag_title = __( 'Vehicle Model', 'trx-auto-dealer' );
	}

	protected function resolveValue( int $vehicleId ): string {
		return $this->taxonomyName( $vehicleId, 'trx_ad_model' );
	}
}
