You are here

public function Message::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Message.php \Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\Message::__construct()
2 calls to Message::__construct()
Response::__construct in vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Response.php
ServerRequest::__construct in vendor/symfony/psr-http-message-bridge/Tests/Fixtures/ServerRequest.php
2 methods override Message::__construct()
Response::__construct in vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Response.php
ServerRequest::__construct in vendor/symfony/psr-http-message-bridge/Tests/Fixtures/ServerRequest.php

File

vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Message.php, line 28

Class

Message
Message.

Namespace

Symfony\Bridge\PsrHttpMessage\Tests\Fixtures

Code

public function __construct($version = '1.1', array $headers = array(), StreamInterface $body = null) {
  $this->version = $version;
  $this->headers = $headers;
  $this->body = null === $body ? new Stream() : $body;
}