public static function getActionValidateAnnotationData($objectManager)
    {
        $reflectionService = $objectManager->get(ReflectionService::class);

        $result = [];

        $className = get_called_class();
        $methodNames = get_class_methods($className);
        foreach ($methodNames as $methodName) {
            if (strlen($methodName) > 6 && strpos($methodName, 'Action', strlen($methodName) - 6) !== false) {
                $validateAnnotations = $reflectionService->getMethodAnnotations($className, $methodName, Flow\Validate::class);
                $result[$methodName] = array_map(function ($validateAnnotation) {
                    return [
                        'type' => $validateAnnotation->type,
                        'options' => $validateAnnotation->options,
                        'argumentName' => $validateAnnotation->argumentName,
                    ];
                }, $validateAnnotations);
            }
        }

        return $result;
    }
public static function getActionValidateAnnotationData($objectManager)
    {
        $reflectionService = $objectManager->get(ReflectionService::class);

        $result = [];

        $className = get_called_class();
        $methodNames = get_class_methods($className);
        foreach ($methodNames as $methodName) {
            if (strlen($methodName) > 6 && strpos($methodName, 'Action', strlen($methodName) - 6) !== false) {
                $validateAnnotations = $reflectionService->getMethodAnnotations($className, $methodName, Flow\Validate::class);
                $result[$methodName] = array_map(function ($validateAnnotation) {
                    return [
                        'type' => $validateAnnotation->type,
                        'options' => $validateAnnotation->options,
                        'argumentName' => $validateAnnotation->argumentName,
                    ];
                }, $validateAnnotations);
            }
        }

        return $result;
    }
public static function getActionValidateAnnotationData ( $ objectManager ) { $ reflectionService = $ objectManager -> get ( ReflectionService :: class ) ; $ result = [ ] ; $ className = get_called_class ( ) ; $ methodNames = get_class_methods ( $ className ) ; foreach ( $ methodNames as $ methodName ) { if ( strlen ( $ methodName ) > 6 && strpos ( $ methodName , 'Action' , strlen ( $ methodName ) - 6 ) !== false ) { $ validateAnnotations = $ reflectionService -> getMethodAnnotations ( $ className , $ methodName , Flow \ Validate :: class ) ; $ result [ $ methodName ] = array_map ( function ( $ validateAnnotation ) { return [ 'type' => $ validateAnnotation -> type , 'options' => $ validateAnnotation -> options , 'argumentName' => $ validateAnnotation -> argumentName , ] ; } , $ validateAnnotations ) ; } } return $ result ; }
Returns a map of action method names and their validation parameters.

@param ObjectManagerInterface $objectManager
@return array Array of validate annotation parameters by action method name
@Flow\CompileStatic
Returns a map of action method names and their validation parameters .