code: protected function getActions(\ReflectionClass $class)
      {
          /** @var ActionDefinition[] $actions */
          $actions = [];
  
          foreach ($class->getMethods() as $method) {
  
              if ($method->isStatic() === false && $method->isPublic()) {
  
                  $options   = MvcOptionsCollection::from($this->reader, $method);
                  $endpoints = $this->getEndpoints($options);
                  $params    = $this->getActionParams($method);
  
                  $actions[] = new ActionDefinition(
                      $class->getName(),
                      $method->getName(),
                      $params,
                      $endpoints,
                      $options
                  );
              }
          }
  
          return $actions;
      }
docs: @param \ReflectionClass $class
  
  @return ActionDefinition[]