gossi\codegen\model\PropertiesInterface::getProperties PHP Method

getProperties() public method

Returns a collection of properties
public getProperties ( ) : Map
return Map
    public function getProperties();

Usage Example

 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);
     }
 }