V2SegmentMapper
in package
Table of Contents
- $pricePoints : Collection
- $pricePointsRepository : DrivePricePointsDatabaseRepositoryContract
- $segments : Collection
- $segmentsRepository : DriveVehicleSegmentsDatabaseRepositoryContract
- __construct() : mixed
- SegmentMapper constructor.
- map() : Collection
- pricePoints() : Collection
- segments() : Collection
Properties
$pricePoints
protected
Collection
$pricePoints
$pricePointsRepository
protected
DrivePricePointsDatabaseRepositoryContract
$pricePointsRepository
$segments
protected
Collection
$segments
$segmentsRepository
protected
DriveVehicleSegmentsDatabaseRepositoryContract
$segmentsRepository
Methods
__construct()
SegmentMapper constructor.
public
__construct(DriveVehicleSegmentsDatabaseRepositoryContract $segmentsRepository, DrivePricePointsDatabaseRepositoryContract $pricePointsRepository) : mixed
Parameters
- $segmentsRepository : DriveVehicleSegmentsDatabaseRepositoryContract
- $pricePointsRepository : DrivePricePointsDatabaseRepositoryContract
Return values
mixed —map()
public
map(int|null $bodyTypeId, int|null $sizeId, int|null $fuelTypeId, int|null $vehiclePrice) : Collection
Parameters
- $bodyTypeId : int|null
- $sizeId : int|null
- $fuelTypeId : int|null
- $vehiclePrice : int|null
Return values
Collection —pricePoints()
protected
pricePoints() : Collection
Return values
Collection —segments()
protected
segments() : Collection