private function getDateNode(): NodeDefinition
    {
        $treeBuilder = new TreeBuilder('date');

        return $treeBuilder
            ->getRootNode()
            ->addDefaultsIfNotSet()
            ->children()
                ->arrayNode('format')
                    ->addDefaultsIfNotSet()
                    ->children()
                        ->scalarNode(DateLength::DATE)
                            ->info('Format of date without time')
                            ->defaultValue('d.m.Y')
                        ->end()
                        ->scalarNode(DateLength::DATETIME)
                            ->info('Format of date with time')
                            ->defaultValue('d.m.Y H:i')
                        ->end()
                        ->scalarNode(DateLength::TIME)
                            ->info('Format of time without date')
                            ->defaultValue('H:i')
                        ->end()
                    ->end()
                ->end()
            ->end()
        ;
    }
private function getDateNode(): NodeDefinition
    {
        $treeBuilder = new TreeBuilder('date');

        return $treeBuilder
            ->getRootNode()
            ->addDefaultsIfNotSet()
            ->children()
                ->arrayNode('format')
                    ->addDefaultsIfNotSet()
                    ->children()
                        ->scalarNode(DateLength::DATE)
                            ->info('Format of date without time')
                            ->defaultValue('d.m.Y')
                        ->end()
                        ->scalarNode(DateLength::DATETIME)
                            ->info('Format of date with time')
                            ->defaultValue('d.m.Y H:i')
                        ->end()
                        ->scalarNode(DateLength::TIME)
                            ->info('Format of time without date')
                            ->defaultValue('H:i')
                        ->end()
                    ->end()
                ->end()
            ->end()
        ;
    }
private function getDateNode ( ) : NodeDefinition { $ treeBuilder = new TreeBuilder ( 'date' ) ; return $ treeBuilder -> getRootNode ( ) -> addDefaultsIfNotSet ( ) -> children ( ) -> arrayNode ( 'format' ) -> addDefaultsIfNotSet ( ) -> children ( ) -> scalarNode ( DateLength :: DATE ) -> info ( 'Format of date without time' ) -> defaultValue ( 'd.m.Y' ) -> end ( ) -> scalarNode ( DateLength :: DATETIME ) -> info ( 'Format of date with time' ) -> defaultValue ( 'd.m.Y H:i' ) -> end ( ) -> scalarNode ( DateLength :: TIME ) -> info ( 'Format of time without date' ) -> defaultValue ( 'H:i' ) -> end ( ) -> end ( ) -> end ( ) -> end ( ) ; }
Returns the "date" node

@return NodeDefinition
Returns the date node