original_string: public function setInputStream($stream)
      {
          @trigger_error(sprintf('The %s() method is deprecated since version 3.2 and will be removed in 4.0. Use %s::setStream() instead.', __METHOD__, StreamableInputInterface::class), E_USER_DEPRECATED);
  
          if (!is_resource($stream)) {
              throw new InvalidArgumentException('Input stream must be a valid resource.');
          }
  
          $this->inputStream = $stream;
      }
code: public function setInputStream($stream)
      {
          @trigger_error(sprintf('The %s() method is deprecated since version 3.2 and will be removed in 4.0. Use %s::setStream() instead.', __METHOD__, StreamableInputInterface::class), E_USER_DEPRECATED);
  
          if (!is_resource($stream)) {
              throw new InvalidArgumentException('Input stream must be a valid resource.');
          }
  
          $this->inputStream = $stream;
      }
code_tokens: public function setInputStream ( $ stream ) { @ trigger_error ( sprintf ( 'The %s() method is deprecated since version 3.2 and will be removed in 4.0. Use %s::setStream() instead.' , __METHOD__ , StreamableInputInterface :: class ) , E_USER_DEPRECATED ) ; if ( ! is_resource ( $ stream ) ) { throw new InvalidArgumentException ( 'Input stream must be a valid resource.' ) ; } $ this -> inputStream = $ stream ; }
docstring: Sets the input stream to read from when interacting with the user.
  
  This is mainly useful for testing purpose.
  
  @deprecated since version 3.2, to be removed in 4.0. Use
  StreamableInputInterface::setStream() instead.
  
  @param resource $stream The input stream
  
  @throws InvalidArgumentException In case the stream is not a resource
docstring_tokens: Sets the input stream to read from when interacting with the user .