gossi\codegen\model\AbstractPhpStruct::getMethods PHP Method

getMethods() public method

Returns all methods
public getMethods ( ) : phootwork\collection\Map
return phootwork\collection\Map collection of methods
    public function getMethods()
    {
        return $this->methods;
    }

Usage Example

 private function sortMethods(AbstractPhpStruct $model)
 {
     if ($this->config->isSortingEnabled() && ($methodSorting = $this->config->getMethodSorting()) !== false) {
         if (is_string($methodSorting)) {
             $methodSorting = ComparatorFactory::createMethodComparator($methodSorting);
         }
         $model->getMethods()->sort($methodSorting);
     }
 }