/** * * @param array|string $days */ public function __construct($days) { parent::__construct('j', $days); }
/** * @param int $day * @param int $month */ public function __construct($day, $month) { parent::__construct('j/n', (int) $day . '/' . (int) $month); }
/** * @param array|string $months */ public function __construct($months) { parent::__construct('n', $months); }
/** * @param array|string $years */ public function __construct($years) { parent::__construct('Y', $years); }