class Message in Zircon Profile 8
Same name in this branch
- 8 vendor/zendframework/zend-stdlib/src/Message.php \Zend\Stdlib\Message
- 8 vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Message.php \Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\Message
- 8 core/modules/contact/src/Entity/Message.php \Drupal\contact\Entity\Message
Same name and namespace in other branches
- 8.0 vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Message.php \Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\Message
Message.
@author Kévin Dunglas <dunglas@gmail.com>
Hierarchy
- class \Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\Message implements MessageInterface
Expanded class hierarchy of Message
17 string references to 'Message'
- Abstract2Dot5ApiTest::testNoDuplicateValidationIfClassConstraintInMultipleGroups in vendor/
symfony/ validator/ Tests/ Validator/ Abstract2Dot5ApiTest.php - Abstract2Dot5ApiTest::testNoDuplicateValidationIfPropertyConstraintInMultipleGroups in vendor/
symfony/ validator/ Tests/ Validator/ Abstract2Dot5ApiTest.php - Abstract2Dot5ApiTest::testTraversalEnabledOnClass in vendor/
symfony/ validator/ Tests/ Validator/ Abstract2Dot5ApiTest.php - AbstractValidatorTest::testValidateDifferentObjectsSeparately in vendor/
symfony/ validator/ Tests/ Validator/ AbstractValidatorTest.php - AbstractValidatorTest::testValidateMultipleGroups in vendor/
symfony/ validator/ Tests/ Validator/ AbstractValidatorTest.php
File
- vendor/
symfony/ psr-http-message-bridge/ Tests/ Fixtures/ Message.php, line 22
Namespace
Symfony\Bridge\PsrHttpMessage\Tests\FixturesView source
class Message implements MessageInterface {
private $version = '1.1';
private $headers = array();
private $body;
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;
}
public function getProtocolVersion() {
return $this->version;
}
public function withProtocolVersion($version) {
throw new \BadMethodCallException('Not implemented.');
}
public function getHeaders() {
return $this->headers;
}
public function hasHeader($name) {
return isset($this->headers[$name]);
}
public function getHeader($name) {
return $this
->hasHeader($name) ? $this->headers[$name] : array();
}
public function getHeaderLine($name) {
return $this
->hasHeader($name) ? implode(',', $this->headers[$name]) : '';
}
public function withHeader($name, $value) {
throw new \BadMethodCallException('Not implemented.');
}
public function withAddedHeader($name, $value) {
throw new \BadMethodCallException('Not implemented.');
}
public function withoutHeader($name) {
throw new \BadMethodCallException('Not implemented.');
}
public function getBody() {
return $this->body;
}
public function withBody(StreamInterface $body) {
throw new \BadMethodCallException('Not implemented.');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Message:: |
private | property | ||
Message:: |
private | property | ||
Message:: |
private | property | ||
Message:: |
public | function |
Gets the body of the message. Overrides MessageInterface:: |
|
Message:: |
public | function |
Retrieves a message header value by the given case-insensitive name. Overrides MessageInterface:: |
|
Message:: |
public | function |
Retrieves a comma-separated string of the values for a single header. Overrides MessageInterface:: |
|
Message:: |
public | function |
Retrieves all message header values. Overrides MessageInterface:: |
|
Message:: |
public | function |
Retrieves the HTTP protocol version as a string. Overrides MessageInterface:: |
|
Message:: |
public | function |
Checks if a header exists by the given case-insensitive name. Overrides MessageInterface:: |
|
Message:: |
public | function |
Return an instance with the specified header appended with the given value. Overrides MessageInterface:: |
|
Message:: |
public | function |
Return an instance with the specified message body. Overrides MessageInterface:: |
|
Message:: |
public | function |
Return an instance with the provided value replacing the specified header. Overrides MessageInterface:: |
|
Message:: |
public | function |
Return an instance without the specified header. Overrides MessageInterface:: |
|
Message:: |
public | function |
Return an instance with the specified HTTP protocol version. Overrides MessageInterface:: |
|
Message:: |
public | function | 2 |