text: <?php
  
  declare(strict_types=1);
  
  namespace League\OpenAPIValidation\PSR15;
  
  use League\OpenAPIValidation\PSR7\ValidatorBuilder;
  use Psr\Http\Server\MiddlewareInterface;
  
  class ValidationMiddlewareBuilder extends ValidatorBuilder
  {
      public function getValidationMiddleware() : MiddlewareInterface
      {
          return new ValidationMiddleware(
              $this->getServerRequestValidator(),
              $this->getResponseValidator()
          );
      }
  }
  