protected function generateUrlOptions(array $options): array
    {
        $urlOptions = [];
        if (isset($options['date'])) {
            $urlOptions['date'] = $options['date']->format('d.m.y');
            $urlOptions['time'] = $options['date']->format('H:i');
            unset($options['date']);
        }

        return array_merge($urlOptions, $options);
    }
protected function generateUrlOptions(array $options): array
    {
        $urlOptions = [];
        if (isset($options['date'])) {
            $urlOptions['date'] = $options['date']->format('d.m.y');
            $urlOptions['time'] = $options['date']->format('H:i');
            unset($options['date']);
        }

        return array_merge($urlOptions, $options);
    }
protected function generateUrlOptions ( array $ options ) : array { $ urlOptions = [ ] ; if ( isset ( $ options [ 'date' ] ) ) { $ urlOptions [ 'date' ] = $ options [ 'date' ] -> format ( 'd.m.y' ) ; $ urlOptions [ 'time' ] = $ options [ 'date' ] -> format ( 'H:i' ) ; unset ( $ options [ 'date' ] ) ; } return array_merge ( $ urlOptions , $ options ) ; }
Generate url options.

@param array $options

@return array
Generate url options .