Debian Codegraph @

lib/3rdParty/composer/symfony/http-client/Chunk/InformationalChunk.php

raw symbols SCIP
1 <?php
2
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <[email protected]>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Symfony\Component\HttpClient\Chunk;
13
14 /**
15 * @author Nicolas Grekas <[email protected]>
16 *
17 * @internal
18 */
19 class InformationalChunk extends DataChunk
20 {
21 private array $status;
22
23 public function __construct(int $statusCode, array $headers)
24 {
25 $this->status = [$statusCode, $headers];
26
27 parent::__construct();
28 }
29
30 public function getInformationalStatus(): ?array
31 {
32 return $this->status;
33 }
34 }