gossi\codegen\model\ConstantsInterface::getConstants PHP Method

getConstants() public method

Returns constants
public getConstants ( ) : PhpConstant[]
return PhpConstant[]
    public function getConstants();

Usage Example

 private function sortConstants(ConstantsInterface $model)
 {
     if ($this->config->isSortingEnabled() && ($constantSorting = $this->config->getConstantSorting()) !== false) {
         if (is_string($constantSorting)) {
             $constantSorting = ComparatorFactory::createConstantComparator($constantSorting);
         }
         $model->getConstants()->sort($constantSorting);
     }
 }