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;
    }
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;
    }
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 ; }
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
Sets the input stream to read from when interacting with the user .