You are here

public function StreamDecoratorTrait::__call in Auth0 Single Sign On 8.2

Allow decorators to implement custom methods

Parameters

string $method Missing method name:

array $args Method arguments:

Return value

mixed

File

vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php, line 66

Class

StreamDecoratorTrait
Stream decorator trait @property StreamInterface stream

Namespace

GuzzleHttp\Psr7

Code

public function __call($method, array $args) {
  $result = call_user_func_array([
    $this->stream,
    $method,
  ], $args);

  // Always return the wrapped object if the result is a return $this
  return $result === $this->stream ? $this : $result;
}