src/Fixer/ClassNotation/OrderedClassElementsFixer.php
protected function createConfigurationDefinition()
    {
        return new FixerConfigurationResolverRootless('order', [
            (new FixerOptionBuilder('order', 'List of strings defining order of elements.'))
                ->setAllowedTypes(['array'])
                ->setAllowedValues([new AllowedValueSubset(array_keys(array_merge(self::$typeHierarchy, self::$specialTypes)))])
                ->setDefault([
                    'use_trait',
                    'constant_public',
                    'constant_protected',
                    'constant_private',
                    'property_public',
                    'property_protected',
                    'property_private',
                    'construct',
                    'destruct',
                    'magic',
                    'phpunit',
                    'method_public',
                    'method_protected',
                    'method_private',
                ])
                ->getOption(),
            (new FixerOptionBuilder('sortAlgorithm', 'How multiple occurrences of same type statements should be sorted'))
                ->setAllowedValues($this->supportedSortAlgorithms)
                ->setDefault(self::SORT_NONE)
                ->getOption(),
        ], $this->getName());
    }
protected function createConfigurationDefinition()
    {
        return new FixerConfigurationResolverRootless('order', [
            (new FixerOptionBuilder('order', 'List of strings defining order of elements.'))
                ->setAllowedTypes(['array'])
                ->setAllowedValues([new AllowedValueSubset(array_keys(array_merge(self::$typeHierarchy, self::$specialTypes)))])
                ->setDefault([
                    'use_trait',
                    'constant_public',
                    'constant_protected',
                    'constant_private',
                    'property_public',
                    'property_protected',
                    'property_private',
                    'construct',
                    'destruct',
                    'magic',
                    'phpunit',
                    'method_public',
                    'method_protected',
                    'method_private',
                ])
                ->getOption(),
            (new FixerOptionBuilder('sortAlgorithm', 'How multiple occurrences of same type statements should be sorted'))
                ->setAllowedValues($this->supportedSortAlgorithms)
                ->setDefault(self::SORT_NONE)
                ->getOption(),
        ], $this->getName());
    }
protected function createConfigurationDefinition ( ) { return new FixerConfigurationResolverRootless ( 'order' , [ ( new FixerOptionBuilder ( 'order' , 'List of strings defining order of elements.' ) ) -> setAllowedTypes ( [ 'array' ] ) -> setAllowedValues ( [ new AllowedValueSubset ( array_keys ( array_merge ( self :: $ typeHierarchy , self :: $ specialTypes ) ) ) ] ) -> setDefault ( [ 'use_trait' , 'constant_public' , 'constant_protected' , 'constant_private' , 'property_public' , 'property_protected' , 'property_private' , 'construct' , 'destruct' , 'magic' , 'phpunit' , 'method_public' , 'method_protected' , 'method_private' , ] ) -> getOption ( ) , ( new FixerOptionBuilder ( 'sortAlgorithm' , 'How multiple occurrences of same type statements should be sorted' ) ) -> setAllowedValues ( $ this -> supportedSortAlgorithms ) -> setDefault ( self :: SORT_NONE ) -> getOption ( ) , ] , $ this -> getName ( ) ) ; }
{@inheritdoc}
{