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

declare(strict_types=1);

namespace ThemeREX\AutoDealer\Elementor\DynamicTags;

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

class VinTag extends AbstractVehicleTag {

	protected string $tag_name  = 'trx-ad-vin';
	protected string $tag_title = 'Vehicle VIN';

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

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