phpDocumentor

ParcelServiceApiRequestValidator

Class ParcelServiceApiRequestValidator

Table of Contents

validatePostRequestBody()  : array<string|int, array<string|int, string>>
validatePutRequestBody()  : array<string|int, array<string|int, string>>
checkAttributes()  : array<string|int, mixed>
checkDescriptionAttributes()  : array<string|int, mixed>

Methods

validatePostRequestBody()

public validatePostRequestBody(array<string|int, mixed> $parsedBody) : array<string|int, array<string|int, string>>
Parameters
$parsedBody : array<string|int, mixed>
Return values
array<string|int, array<string|int, string>>

validatePutRequestBody()

public validatePutRequestBody(array<string|int, mixed> $parsedBody) : array<string|int, array<string|int, string>>
Parameters
$parsedBody : array<string|int, mixed>
Return values
array<string|int, array<string|int, string>>

checkAttributes()

private checkAttributes(array<string|int, mixed> $parsedBody, array<string|int, mixed> $mandatory, array<string|int, mixed> $descriptionMandatory) : array<string|int, mixed>
Parameters
$parsedBody : array<string|int, mixed>
$mandatory : array<string|int, mixed>
$descriptionMandatory : array<string|int, mixed>
Return values
array<string|int, mixed>

checkDescriptionAttributes()

private checkDescriptionAttributes(array<string|int, mixed> $descriptionMandatory, array<string|int, mixed> $parcelServiceDetails, array<string|int, mixed> $errors, string|int $reference) : array<string|int, mixed>
Parameters
$descriptionMandatory : array<string|int, mixed>
$parcelServiceDetails : array<string|int, mixed>
$errors : array<string|int, mixed>
$reference : string|int
Return values
array<string|int, mixed>

Search results