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

declare(strict_types=1);

namespace ThemeREX\AutoDealer\Elementor\DynamicTags;

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

class YearTag extends AbstractVehicleTag {

	protected string $tag_name  = 'trx-ad-year';
	protected string $tag_title = 'Vehicle Year';

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

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