public function MessageTrait::getProtocolVersion in Zircon Profile 8
Same name in this branch
- 8 vendor/zendframework/zend-diactoros/src/MessageTrait.php \Zend\Diactoros\MessageTrait::getProtocolVersion()
- 8 vendor/guzzlehttp/psr7/src/MessageTrait.php \GuzzleHttp\Psr7\MessageTrait::getProtocolVersion()
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-diactoros/src/MessageTrait.php \Zend\Diactoros\MessageTrait::getProtocolVersion()
Retrieves the HTTP protocol version as a string.
The string MUST contain only the HTTP version number (e.g., "1.1", "1.0").
Return value
string HTTP protocol version.
File
- vendor/
zendframework/ zend-diactoros/ src/ MessageTrait.php, line 53
Class
- MessageTrait
- Trait implementing the various methods defined in MessageInterface.
Namespace
Zend\DiactorosCode
public function getProtocolVersion() {
return $this->protocol;
}