private function getActionsForModule($module, $config)
    {
        $reflectionClass = new \ReflectionClass($module);

        // Only public methods can be actions
        $methods = $reflectionClass->getMethods(\ReflectionMethod::IS_PUBLIC);

        // Should this module be loaded partially?
        $configuredParts = null;
        if ($module instanceof PartedModule && isset($config['part'])) {
            $configuredParts = is_array($config['part']) ? $config['part'] : [$config['part']];
        }

        $actions = [];
        foreach ($methods as $method) {
            if ($this->includeMethodAsAction($module, $method, $configuredParts)) {
                $actions[] = $method->name;
            }
        }

        return $actions;
    }
private function getActionsForModule($module, $config)
    {
        $reflectionClass = new \ReflectionClass($module);

        // Only public methods can be actions
        $methods = $reflectionClass->getMethods(\ReflectionMethod::IS_PUBLIC);

        // Should this module be loaded partially?
        $configuredParts = null;
        if ($module instanceof PartedModule && isset($config['part'])) {
            $configuredParts = is_array($config['part']) ? $config['part'] : [$config['part']];
        }

        $actions = [];
        foreach ($methods as $method) {
            if ($this->includeMethodAsAction($module, $method, $configuredParts)) {
                $actions[] = $method->name;
            }
        }

        return $actions;
    }
private function getActionsForModule ( $ module , $ config ) { $ reflectionClass = new \ ReflectionClass ( $ module ) ; // Only public methods can be actions $ methods = $ reflectionClass -> getMethods ( \ ReflectionMethod :: IS_PUBLIC ) ; // Should this module be loaded partially? $ configuredParts = null ; if ( $ module instanceof PartedModule && isset ( $ config [ 'part' ] ) ) { $ configuredParts = is_array ( $ config [ 'part' ] ) ? $ config [ 'part' ] : [ $ config [ 'part' ] ] ; } $ actions = [ ] ; foreach ( $ methods as $ method ) { if ( $ this -> includeMethodAsAction ( $ module , $ method , $ configuredParts ) ) { $ actions [ ] = $ method -> name ; } } return $ actions ; }
Get the actions of a module.

@param \Codeception\Module $module
@param array $config
@return array
Get the actions of a module .