protected function evaluateLifeCycleAnnotations(\ReflectionClass $class, ORM\ClassMetadataInfo $metadata)
    {
        foreach ($class->getMethods() as $method) {
            if ($method->isPublic()) {
                foreach ($this->getMethodCallbacks($method) as $value) {
                    $metadata->addLifecycleCallback($value[0], $value[1]);
                }
            }
        }

        $proxyAnnotation = $this->reader->getClassAnnotation($class, Flow\Proxy::class);
        if ($proxyAnnotation === null || $proxyAnnotation->enabled !== false) {
            $metadata->addLifecycleCallback('__wakeup', Events::postLoad);
        }
    }
protected function evaluateLifeCycleAnnotations(\ReflectionClass $class, ORM\ClassMetadataInfo $metadata)
    {
        foreach ($class->getMethods() as $method) {
            if ($method->isPublic()) {
                foreach ($this->getMethodCallbacks($method) as $value) {
                    $metadata->addLifecycleCallback($value[0], $value[1]);
                }
            }
        }

        $proxyAnnotation = $this->reader->getClassAnnotation($class, Flow\Proxy::class);
        if ($proxyAnnotation === null || $proxyAnnotation->enabled !== false) {
            $metadata->addLifecycleCallback('__wakeup', Events::postLoad);
        }
    }
protected function evaluateLifeCycleAnnotations ( \ ReflectionClass $ class , ORM \ ClassMetadataInfo $ metadata ) { foreach ( $ class -> getMethods ( ) as $ method ) { if ( $ method -> isPublic ( ) ) { foreach ( $ this -> getMethodCallbacks ( $ method ) as $ value ) { $ metadata -> addLifecycleCallback ( $ value [ 0 ] , $ value [ 1 ] ) ; } } } $ proxyAnnotation = $ this -> reader -> getClassAnnotation ( $ class , Flow \ Proxy :: class ) ; if ( $ proxyAnnotation === null || $ proxyAnnotation -> enabled !== false ) { $ metadata -> addLifecycleCallback ( '__wakeup' , Events :: postLoad ) ; } }
Evaluate the lifecycle annotations and amend the metadata accordingly.

@param \ReflectionClass $class
@param ORM\ClassMetadataInfo $metadata
@return void
Evaluate the lifecycle annotations and amend the metadata accordingly .