gossi\codegen\generator\builder\parts\StructBuilderPart::sortProperties PHP Method

sortProperties() private method

private sortProperties ( gossi\codegen\model\PropertiesInterface $model )
$model gossi\codegen\model\PropertiesInterface
    private function sortProperties(PropertiesInterface $model)
    {
        if ($this->config->isSortingEnabled() && ($propertySorting = $this->config->getPropertySorting()) !== false) {
            if (is_string($propertySorting)) {
                $propertySorting = ComparatorFactory::createPropertyComparator($propertySorting);
            }
            $model->getProperties()->sort($propertySorting);
        }
    }