mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 17:41:50 +01:00
Refactoring
This commit is contained in:
@@ -66,11 +66,11 @@ class Date
|
||||
/**
|
||||
* Returns date's period (that contains start and end date) for given period
|
||||
*
|
||||
* @param int $period The period, type of period. One of DatePeriod class constants, e.g. DatePeriod::LAST_WEEK.
|
||||
* @param string $period The period, type of period. One of DatePeriod class constants, e.g. DatePeriod::LAST_WEEK.
|
||||
* @throws Exception
|
||||
* @return null|DatePeriod
|
||||
*/
|
||||
public static function getDatesForPeriod($period)
|
||||
public static function getDatesForPeriod(string $period): ?DatePeriod
|
||||
{
|
||||
/*
|
||||
* Type of period is incorrect?
|
||||
|
||||
Reference in New Issue
Block a user