DcotyCategoryMapper
in package
Table of Contents
- $dcotyCategories : Collection
- $mapping : array<string|int, mixed>
- $repository : DriveDcotyCategoriesDatabaseRepositoryContract
- __construct() : mixed
- SegmentMapper constructor.
- map() : array<string|int, mixed>|array<string|int, DriveVehicleDcotyCategory>
- dcotyCategories() : Collection
Properties
$dcotyCategories
protected
Collection
$dcotyCategories
$mapping
protected
array<string|int, mixed>
$mapping
= ['Passenger Micro Micro' => ['Best City Car'], 'Passenger Light < $25K' => ['Best City Car'], 'Passenger Light > $25K' => ['Best City Car'], 'Passenger Small < $40K' => ['Best Small Car'], 'Passenger Small > $40K' => ['Best Small Luxury Car'], 'Passenger Medium < $60K' => ['Best Medium to Large Car'], 'Passenger Medium > $60K' => ['Best Medium Luxury Car'], 'Passenger Large < $70K' => ['Best Medium to Large Car'], 'Passenger Large > $70K' => ['Best Large Luxury Car'], 'Passenger Upper Large < $100K' => [], 'Passenger Upper Large > $100K' => [], 'Passenger People Movers < $60K' => ['Best People Mover'], 'Passenger People Movers > $60K' => ['Best People Mover'], 'Passenger Sports < $80K' => ['Best Sports Car under $100k'], 'Passenger Sports > $80K' => ['Best Sports Car over $100k'], 'Passenger Sports > $200K' => ['Best Sports Car over $100k'], 'SUV Light' => ['Best Light SUV', 'Best Off-road SUV', 'Best Sports SUV'], 'SUV Small < $40K' => ['Best Small SUV', 'Best Off-road SUV', 'Best Sports SUV'], 'SUV Small > $40K' => ['Best Small Luxury SUV', 'Best Off-road SUV', 'Best Sports SUV'], 'SUV Medium < $60K' => ['Best Medium SUV', 'Best Off-road SUV', 'Best Sports SUV'], 'SUV Medium > $60K' => ['Best Medium Luxury SUV', 'Best Off-road SUV', 'Best Sports SUV'], 'SUV Large < $70K' => ['Best Large SUV', 'Best Off-road SUV', 'Best Sports SUV'], 'SUV Large > $70K' => ['Best Large Luxury SUV', 'Best Off-road SUV', 'Best Sports SUV'], 'SUV Upper Large < $100K' => ['Best Upper Large SUV', 'Best Off-road SUV', 'Best Sports SUV'], 'SUV Upper Large > $100K' => ['Best Large Luxury SUV', 'Best Off-road SUV', 'Best Sports SUV'], 'Light Commercial Light Buses < 20 Seats' => [], 'Light Commercial Light Buses => 20 Seats' => [], 'Light Commercial Vans/CC <= 2.5t' => ['Best Van'], 'Light Commercial Vans/CC 2.5t-3.5t' => ['Best Van'], 'Light Commercial PU/CC 4X2' => [], 'Light Commercial PU/CC 4x4' => ['Commercial']]
$repository
protected
DriveDcotyCategoriesDatabaseRepositoryContract
$repository
Methods
__construct()
SegmentMapper constructor.
public
__construct(DriveDcotyCategoriesDatabaseRepositoryContract $repository) : mixed
Parameters
- $repository : DriveDcotyCategoriesDatabaseRepositoryContract
Return values
mixed —map()
public
map(string|null $vfactsClass, string|null $vfactsSegment, string|null $vfactsPricingSegment, string|null $engineTypeDescription) : array<string|int, mixed>|array<string|int, DriveVehicleDcotyCategory>
Parameters
- $vfactsClass : string|null
- $vfactsSegment : string|null
- $vfactsPricingSegment : string|null
- $engineTypeDescription : string|null
Return values
array<string|int, mixed>|array<string|int, DriveVehicleDcotyCategory> —dcotyCategories()
protected
dcotyCategories() : Collection