. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Contracts; use Fisharebest\Webtrees\Date\AbstractCalendarDate; /** * Create a calendar date object. */ interface CalendarDateFactoryInterface { /** * Parse a string containing a calendar date. * * @param string $date * * @return AbstractCalendarDate|null */ public function make(string $date): ?AbstractCalendarDate; /** * A list of supported calendars and their names. * * @return array */ public function supportedCalendars(): array; }