프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$endDate | Carbon\Carbon | Starting date of the period. | |
$startDate | Carbon\Carbon | Starting date of the period. |
메소드 | 설명 | |
---|---|---|
__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 | ||
리턴 | Carbon\Carbon |
public getStartDate ( ) : Carbon\Carbon | ||
리턴 | Carbon\Carbon |
public setEndDate ( Carbon\Carbon $endDate ) : self | ||
$endDate | Carbon\Carbon | |
리턴 | self |
public setStartDate ( Carbon\Carbon $startDate ) : self | ||
$startDate | Carbon\Carbon | |
리턴 | self |
public validatePeriod ( Carbon\Carbon $startDate = null, Carbon\Carbon $endDate = null ) | ||
$startDate | Carbon\Carbon | |
$endDate | Carbon\Carbon |