ReportIntentionValidator
in package
FinalYes
Table of Contents
Properties
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
$reportIntentionRepository
private
ReportIntentionRepository
$reportIntentionRepository
Methods
__construct()
public
__construct(ReportIntentionRepository $reportIntentionRepository) : mixed
Parameters
- $reportIntentionRepository : ReportIntentionRepository
validAll()
public
validAll(ReportIntention $inReportIntention[, int|null $excludeReportIntentionId = null ]) : void
Parameters
- $inReportIntention : ReportIntention
- $excludeReportIntentionId : int|null = null
Tags
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
intgenerateBiMonthlyAllowedDates()
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
booloutside()
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
boolvalidateBiMonthlyDate()
private
validateBiMonthlyDate(mixed $reportIntentionDT, mixed $startMonth, mixed $day, mixed $errorMessage) : mixed
Parameters
- $reportIntentionDT : mixed
- $startMonth : mixed
- $day : mixed
- $errorMessage : mixed
validateEndDateForBimonthlyPeriod()
private
validateEndDateForBimonthlyPeriod(ReportIntention $reportIntention) : mixed
Parameters
- $reportIntention : ReportIntention
validateEndDateForQuarterPeriod()
private
validateEndDateForQuarterPeriod(ReportIntention $reportIntention) : mixed
Parameters
- $reportIntention : ReportIntention
validateEndDateForYearlyPeriod()
private
validateEndDateForYearlyPeriod(ReportIntention $reportIntention) : mixed
Parameters
- $reportIntention : ReportIntention
validateStartDateForBimonthlyPeriod()
private
validateStartDateForBimonthlyPeriod(ReportIntention $reportIntention) : mixed
Parameters
- $reportIntention : ReportIntention
validateStartDateForQuarterPeriod()
private
validateStartDateForQuarterPeriod(ReportIntention $reportIntention) : mixed
Parameters
- $reportIntention : ReportIntention
validateStartDateForYearlyPeriod()
private
validateStartDateForYearlyPeriod(ReportIntention $reportIntention) : mixed
Parameters
- $reportIntention : ReportIntention