Created
August 22, 2019 10:08
-
-
Save dvlpp/e8417fe96e54d5f212a3444d1dfc98ff to your computer and use it in GitHub Desktop.
PassengerBirthdateFilter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PassengerBirthdateFilter implements EntityListDateRangeRequiredFilter | |
{ | |
public function label() | |
{ | |
return "Born between"; | |
} | |
public function defaultValue() | |
{ | |
return [ | |
"start" => (new Carbon())->setDate(2014,1,1), | |
"end" => (new Carbon())->setDate(2014,12,31), | |
]; | |
} | |
public function dateFormat() | |
{ | |
return "YYYY-MM-DD"; | |
} | |
public function isMondayFirst() | |
{ | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment