| 1 | <?php |
||
| 8 | final class ContentDisposition implements HeaderInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | private $value; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $filename; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string $value |
||
| 22 | * @param string $filename |
||
| 23 | */ |
||
| 24 | 37 | private function __construct(string $value, string $filename) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @return HeaderName |
||
| 32 | */ |
||
| 33 | 37 | public function getName(): HeaderName |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @return HeaderValue |
||
| 40 | */ |
||
| 41 | 12 | public function getValue(): HeaderValue |
|
| 51 | |||
| 52 | /** |
||
| 53 | * @param string $filename |
||
| 54 | * @return ContentDisposition |
||
| 55 | */ |
||
| 56 | 13 | public static function newInline(string $filename) |
|
| 60 | |||
| 61 | /** |
||
| 62 | * @param string $filename |
||
| 63 | * @return ContentDisposition |
||
| 64 | */ |
||
| 65 | 30 | public static function newAttachment(string $filename) |
|
| 69 | } |
||
| 70 |