public function ClassWithClosure::methodName

Plugin annotation

@AnnotationTargetAll(@AnnotationTargetAnnotation);

Parameters

\Closure $callback:

Return value

\Closure

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Annotations/Fixtures/ClassWithClosure.php, line 26

Class

ClassWithClosure
Plugin annotation @AnnotationTargetAll("Foo");

Namespace

Doctrine\Tests\Common\Annotations\Fixtures

Code

public function methodName(\Closure $callback) {
  $self = $this;
  return function () use ($self, $callback) {
    return $callback;
  };
}