Property | Type | Description | |
---|---|---|---|
$endDate | Carbon\Carbon | Starting date of the period. | |
$startDate | Carbon\Carbon | Starting date of the period. |
Method | Description | |
---|---|---|
__construct ( Carbon\Carbon $startDate, Carbon\Carbon $endDate ) | ||
getEndDate ( ) : Carbon\Carbon | Gets the Starting date of the period. | |
getStartDate ( ) : Carbon\Carbon | Gets the Starting date of the period. | |
setEndDate ( Carbon\Carbon $endDate ) : self | Sets the Starting date of the period. | |
setStartDate ( Carbon\Carbon $startDate ) : self | Sets the Starting date of the period. | |
validatePeriod ( Carbon\Carbon $startDate = null, Carbon\Carbon $endDate = null ) |
public __construct ( Carbon\Carbon $startDate, Carbon\Carbon $endDate ) | ||
$startDate | Carbon\Carbon | |
$endDate | Carbon\Carbon |
public getEndDate ( ) : Carbon\Carbon | ||
return | Carbon\Carbon |
public getStartDate ( ) : Carbon\Carbon | ||
return | Carbon\Carbon |
public setEndDate ( Carbon\Carbon $endDate ) : self | ||
$endDate | Carbon\Carbon | |
return | self |
public setStartDate ( Carbon\Carbon $startDate ) : self | ||
$startDate | Carbon\Carbon | |
return | self |
public validatePeriod ( Carbon\Carbon $startDate = null, Carbon\Carbon $endDate = null ) | ||
$startDate | Carbon\Carbon | |
$endDate | Carbon\Carbon |
public Carbon,Carbon $endDate | ||
return | Carbon\Carbon |