diff --git a/src/Middleware/MiddlewareInterface.php b/src/Middleware/MiddlewareInterface.php index 224006ffe..d55fc60a5 100644 --- a/src/Middleware/MiddlewareInterface.php +++ b/src/Middleware/MiddlewareInterface.php @@ -40,13 +40,12 @@ /** * Middlewares must take a MiddlewareInterface as their first constructor - * argument {@see Google\ApiCore\Middleware\ResponseMetadataMiddleware}, which - * represents the next middleware in the chain. This next middleware MUST be - * invoked by this MiddlewareInterface, and the result must be returned as part - * of the `__invoke` method implementation. + * argument, which represents the next middleware in the chain. This next + * middleware MUST be invoked by this MiddlewareInterface, and the result must + * be returned as part of the `__invoke` method implementation. * - * To create your own middleware, first implement the interface, as well as pass the handler - * in through the constructor: + * To create your own middleware, first implement the interface, as well as + * pass the handler in through the constructor: * * ``` * use Google\ApiCore\Call; @@ -66,8 +65,8 @@ * } * ``` * - * Next, add the middleware to any class implementing `GapicClientTrait` by passing in a - * callable which returns the new middleware: + * Next, add the middleware to any class implementing `GapicClientTrait` by + * passing in a callable which returns the new middleware: * * ``` * $client = new ExampleGoogleApiServiceClient(); @@ -75,6 +74,8 @@ * return new MyTestMiddleware($handler); * }); * ``` + * + * @see Google\ApiCore\Middleware\ResponseMetadataMiddleware */ interface MiddlewareInterface {