Documentation

ReportIntentionValidator
in package

FinalYes

Table of Contents

Properties

$reportIntentionRepository  : ReportIntentionRepository

Methods

__construct()  : mixed
validAll()  : void
validateDateGap()  : mixed
compare()  : int
generateBiMonthlyAllowedDates()  : mixed
inside()  : bool
outside()  : bool
validateBiMonthlyDate()  : mixed
validateEndDateForBimonthlyPeriod()  : mixed
validateEndDateForQuarterPeriod()  : mixed
validateEndDateForYearlyPeriod()  : mixed
validateStartDateForBimonthlyPeriod()  : mixed
validateStartDateForQuarterPeriod()  : mixed
validateStartDateForYearlyPeriod()  : mixed

Properties

Methods

validateDateGap()

public validateDateGap(mixed $inReportIntention, mixed $reportIntentions) : mixed
Parameters
$inReportIntention : mixed
$reportIntentions : mixed

compare()

private compare(DateTimeInterface|null $a, DateTimeInterface|null $b) : int
Parameters
$a : DateTimeInterface|null
$b : DateTimeInterface|null
Return values
int

generateBiMonthlyAllowedDates()

private generateBiMonthlyAllowedDates(mixed $start, mixed $day) : mixed
Parameters
$start : mixed
$day : mixed

inside()

private inside(DateTimeInterface|null $a1, DateTimeInterface|null $a2, DateTimeInterface|null $b1, DateTimeInterface|null $b2) : bool
Parameters
$a1 : DateTimeInterface|null
$a2 : DateTimeInterface|null
$b1 : DateTimeInterface|null
$b2 : DateTimeInterface|null
Return values
bool

outside()

private outside(DateTimeInterface|null $a1, DateTimeInterface|null $a2, DateTimeInterface|null $b1, DateTimeInterface|null $b2) : bool
Parameters
$a1 : DateTimeInterface|null
$a2 : DateTimeInterface|null
$b1 : DateTimeInterface|null
$b2 : DateTimeInterface|null
Return values
bool

validateBiMonthlyDate()

private validateBiMonthlyDate(mixed $reportIntentionDT, mixed $startMonth, mixed $day, mixed $errorMessage) : mixed
Parameters
$reportIntentionDT : mixed
$startMonth : mixed
$day : mixed
$errorMessage : mixed

        
On this page

Search results