1 | <?php declare(strict_types=1); |
||
7 | final class NamedBlob |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $path; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $mode; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $type; |
||
23 | |||
24 | /** |
||
25 | * @var string|null |
||
26 | */ |
||
27 | private $sha; |
||
28 | |||
29 | /** |
||
30 | * @var ReadableStreamInterface|null |
||
31 | */ |
||
32 | private $content; |
||
33 | |||
34 | /** |
||
35 | * @param string $path |
||
36 | * @param string $mode |
||
37 | * @param string $type |
||
38 | * @param string|null $sha |
||
39 | * @param ReadableStreamInterface|null $content |
||
40 | * @throws \Exception |
||
41 | */ |
||
42 | public function __construct(string $path, string $mode, string $type, ?string $sha, ?ReadableStreamInterface $content) |
||
54 | |||
55 | /** |
||
56 | * @return string |
||
57 | */ |
||
58 | public function getPath(): string |
||
62 | |||
63 | /** |
||
64 | * @return string |
||
65 | */ |
||
66 | public function getMode(): string |
||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | public function getType(): string |
||
78 | |||
79 | /** |
||
80 | * @return string|null |
||
81 | */ |
||
82 | public function getSha(): ?string |
||
86 | |||
87 | /** |
||
88 | * @return ReadableStreamInterface|null |
||
89 | */ |
||
90 | public function getContent(): ?ReadableStreamInterface |
||
94 | } |
||
95 |