Completed
Push — master ( f95229...017b93 )
by Nikita
13:15
created

MediaUploadFileMessage::getResource()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Yproximite\Api\Message\Media;
5
6
use Psr\Http\Message\StreamInterface;
7
use Yproximite\Api\Message\MessageInterface;
8
9
/**
10
 * Class MediaUploadFileMessage
11
 */
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()
28
    {
29
        return $this->filename;
30
    }
31
32
    /**
33
     * @param null|string $filename
34
     */
35
    public function setFilename(string $filename = null)
36
    {
37
        $this->filename = $filename;
38
    }
39
40
    /**
41
     * @return StreamInterface|resource|string
42
     */
43
    public function getResource()
44
    {
45
        return $this->resource;
46
    }
47
48
    /**
49
     * @param StreamInterface|resource|string $resource
50
     */
51
    public function setResource($resource)
52
    {
53
        $this->resource = $resource;
54
    }
55
56
    /**
57
     * {@inheritdoc}
58
     */
59
    public function build()
60
    {
61
        return null;
62
    }
63
}
64