예제 #1
0
파일: Response.php 프로젝트: lamenath/fbp
 /**
  * Creates a response.
  *
  * @param integer                                    $statusCode      The status code.
  * @param string                                     $reasonPhrase    The reason phrase.
  * @param string                                     $protocolVersion The protocol version.
  * @param array                                      $headers         The headers.
  * @param \Psr\Http\Message\StreamableInterface|null $body            The body.
  * @param array                                      $parameters      The parameters.
  */
 public function __construct($statusCode = 200, $reasonPhrase = 'OK', $protocolVersion = self::PROTOCOL_VERSION_1_1, array $headers = array(), StreamableInterface $body = null, array $parameters = array())
 {
     parent::__construct($protocolVersion, $headers, $body, $parameters);
     $this->statusCode = $statusCode;
     $this->reasonPhrase = $reasonPhrase;
 }
예제 #2
0
파일: Request.php 프로젝트: lamenath/fbp
 /**
  * {@inheritdoc}
  */
 public function setBody(StreamableInterface $body = null)
 {
     parent::setBody($body);
 }