FuelTypeDescriptionMapper
in package
Table of Contents
- $mapping : array<string|int, mixed>
- Mapping table for Drive's fuel type description.
- map() : string|null
Properties
$mapping
Mapping table for Drive's fuel type description.
protected
array<string|int, mixed>
$mapping
= ['Electric_Electric' => 'Electric', 'Piston_Diesel' => 'Diesel', 'Piston_Petrol' => 'Petrol', 'Piston_Petrol - Premium ULP' => 'Petrol', 'Piston_Petrol - Unleaded ULP' => 'Petrol', 'Piston_Petrol or LPG (Dual)' => 'Petrol', 'Piston_Petrol or CNG (Dual)' => 'Petrol', 'Piston - Electric_Petrol' => 'Hybrid', 'Piston - Electric_Petrol - Premium ULP' => 'Hybrid', 'Piston - Electric_Petrol - Unleaded ULP' => 'Hybrid']
Key is in the format: {engine_type_description}_{fuel_type_description}
Methods
map()
public
map([string|null $engineTypeDescription = null ][, string|null $fuelTypeDescription = null ]) : string|null
Parameters
- $engineTypeDescription : string|null = null
- $fuelTypeDescription : string|null = null