src/Proxy/Generator/ProxyCodeGenerator.php
private function getProxyMethods(): array
    {
        if (null !== $this->reflectionProxyMethods) {
            return $this->reflectionProxyMethods;
        }

        $proxyMethods = [];
        $methods = $this->getClassMethods();

        foreach ($methods as $method) {
            $docComment = $method->getDocComment();

            if (\strpos($docComment, 'Transactional') !== false) {
                $annotation = $this->annotationReader->getMethodAnnotation(
                    $method,
                    Transactional::class
                );

                if ($annotation) {
                    $proxyMethods[] = $method;
                }
            }
        }

        $this->reflectionProxyMethods = $proxyMethods;

        return $proxyMethods;
    }
private function getProxyMethods(): array
    {
        if (null !== $this->reflectionProxyMethods) {
            return $this->reflectionProxyMethods;
        }

        $proxyMethods = [];
        $methods = $this->getClassMethods();

        foreach ($methods as $method) {
            $docComment = $method->getDocComment();

            if (\strpos($docComment, 'Transactional') !== false) {
                $annotation = $this->annotationReader->getMethodAnnotation(
                    $method,
                    Transactional::class
                );

                if ($annotation) {
                    $proxyMethods[] = $method;
                }
            }
        }

        $this->reflectionProxyMethods = $proxyMethods;

        return $proxyMethods;
    }
private function getProxyMethods ( ) : array { if ( null !== $ this -> reflectionProxyMethods ) { return $ this -> reflectionProxyMethods ; } $ proxyMethods = [ ] ; $ methods = $ this -> getClassMethods ( ) ; foreach ( $ methods as $ method ) { $ docComment = $ method -> getDocComment ( ) ; if ( \ strpos ( $ docComment , 'Transactional' ) !== false ) { $ annotation = $ this -> annotationReader -> getMethodAnnotation ( $ method , Transactional :: class ) ; if ( $ annotation ) { $ proxyMethods [ ] = $ method ; } } } $ this -> reflectionProxyMethods = $ proxyMethods ; return $ proxyMethods ; }
Get proxy methods

@return array|\ReflectionMethod[]
Get proxy methods