Debian Codegraph @

lib/3rdParty/composer/aws/aws-crt-php/src/AWS/CRT/HTTP/Response.php

raw symbols SCIP
1 <?php
2 /**
3 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4 * SPDX-License-Identifier: Apache-2.0.
5 */
6 namespace AWS\CRT\HTTP;
7
8 class Response extends Message {
9 private $status_code;
10
11 public function __construct($method, $path, $query, $headers, $status_code) {
12 parent::__construct($method, $path, $query, $headers);
13 $this->status_code = $status_code;
14 }
15
16 public static function marshall($response) {
17 return parent::marshall($response);
18 }
19
20 public static function unmarshall($buf) {
21 return parent::_unmarshall($buf, Response::class);
22 }
23
24 public function status_code() {
25 return $this->status_code;
26 }
27 }