Documentation

VehicleAvailable implements Rule

Interfaces, Classes and Traits

Rule

Table of Contents

$endDate  : mixed
$isEdition  : mixed
$pickUpLocationId  : mixed
$pickUpOfficeId  : mixed
$returnLocationId  : mixed
$returnOfficeId  : mixed
$startDate  : mixed
__construct()  : void
Create a new rule instance.
checkPlatesStock()  : mixed
message()  : string
Get the validation error message.
passes()  : bool
Determine if the validation rule passes.
checkWithLocations()  : mixed
checkWithOffices()  : mixed

Properties

Methods

__construct()

Create a new rule instance.

public __construct([mixed $pickUpPlaceId = null ][, mixed $returnPlaceId = null ][, mixed $startDate = null ][, mixed $endDate = null ][, mixed $placeIsLocation = false ][, mixed $isEdition = false ]) : void
Parameters
$pickUpPlaceId : mixed = null
$returnPlaceId : mixed = null
$startDate : mixed = null
$endDate : mixed = null
$placeIsLocation : mixed = false
$isEdition : mixed = false
Return values
void

checkPlatesStock()

public static checkPlatesStock( $vehicle, mixed $startDateTime, mixed $endDateTime[, mixed $bookingVehicleExcluded = null ]) : mixed
Parameters
$vehicle :
$startDateTime : mixed
$endDateTime : mixed
$bookingVehicleExcluded : mixed = null
Tags
desc

Check if a vehicle plate is available between two given dates

Return values
mixed

message()

Get the validation error message.

public message() : string
Return values
string

passes()

Determine if the validation rule passes.

public passes(string $attribute, mixed $value) : bool
Parameters
$attribute : string
$value : mixed
Return values
bool

checkWithLocations()

private checkWithLocations(mixed $vehicle) : mixed
Parameters
$vehicle : mixed
Return values
mixed

checkWithOffices()

private checkWithOffices(mixed $vehicle) : mixed
Parameters
$vehicle : mixed
Return values
mixed

Search results