1.2.2. Protocol Version

1.2.2.1. Setting the Version

final public setVersion(?string $version) : static

This sets the protocol version for the Response (typically '1.0', '1.1', or '2').

The method is fluent, allowing you to chain a call to another Response method.

1.2.2.2. Getting the Version

final public getVersion() : ?string

Returns the protocol version for the response.