1 | <?php |
||
12 | class MediaUploadFileMessage implements MessageInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var string|null |
||
16 | */ |
||
17 | private $filename; |
||
18 | |||
19 | /** |
||
20 | * @var string|resource|StreamInterface |
||
21 | */ |
||
22 | private $resource; |
||
23 | |||
24 | /** |
||
25 | * @return null|string |
||
26 | */ |
||
27 | public function getFilename() |
||
31 | |||
32 | /** |
||
33 | * @param null|string $filename |
||
34 | */ |
||
35 | public function setFilename(string $filename = null) |
||
39 | |||
40 | /** |
||
41 | * @return StreamInterface|resource|string |
||
42 | */ |
||
43 | public function getResource() |
||
47 | |||
48 | /** |
||
49 | * @param StreamInterface|resource|string $resource |
||
50 | */ |
||
51 | public function setResource($resource) |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function build() |
||
63 | } |
||
64 |