You are here

class HttpClientHandlerStackEvent in HTTP Client Manager 8.2

Class HttpClientHandlerStackEvent.

@package Drupal\http_client_manager\Event

Hierarchy

Expanded class hierarchy of HttpClientHandlerStackEvent

2 files declare their use of HttpClientHandlerStackEvent
HttpClient.php in src/HttpClient.php
HttpClientManagerExampleSubscriber.php in modules/http_client_manager_example/src/EventSubscriber/HttpClientManagerExampleSubscriber.php

File

src/Event/HttpClientHandlerStackEvent.php, line 13

Namespace

Drupal\http_client_manager\Event
View source
class HttpClientHandlerStackEvent extends Event {

  /**
   * The GuzzleHttp Handler stack.
   *
   * @var \GuzzleHttp\HandlerStack
   */
  protected $handlerStack;

  /**
   * The HTTP Service API id.
   *
   * @var string
   */
  protected $httpServiceApi;

  /**
   * HttpClientHandlerStackEvent constructor.
   *
   * @param \GuzzleHttp\HandlerStack $handler_stack
   *   The GuzzleHttp Handler stack.
   * @param string $http_service_api
   *   The HTTP Service Api id.
   */
  public function __construct(HandlerStack $handler_stack, $http_service_api) {
    $this->handlerStack = $handler_stack;
    $this->httpServiceApi = $http_service_api;
  }

  /**
   * Get Handler stack.
   *
   * @return \GuzzleHttp\HandlerStack
   *   The GuzzleHttp Handler stack.
   */
  public function getHandlerStack() {
    return $this->handlerStack;
  }

  /**
   * Get HTTP Service Api id.
   *
   * @return string
   *   The HTTP Service Api id.
   */
  public function getHttpServiceApi() {
    return $this->httpServiceApi;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
HttpClientHandlerStackEvent::$handlerStack protected property The GuzzleHttp Handler stack.
HttpClientHandlerStackEvent::$httpServiceApi protected property The HTTP Service API id.
HttpClientHandlerStackEvent::getHandlerStack public function Get Handler stack.
HttpClientHandlerStackEvent::getHttpServiceApi public function Get HTTP Service Api id.
HttpClientHandlerStackEvent::__construct public function HttpClientHandlerStackEvent constructor.