Attachment::setDisposition()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
namespace Sichikawa\SendgridApiBuilder\Api;
3
4
5
class Attachment
6
{
7
    /**
8
     * @var string
9
     */
10
    public $content;
11
12
    /**
13
     * @var string
14
     */
15
    public $type;
16
17
    /**
18
     * @var string
19
     */
20
    public $filename;
21
22
    /**
23
     * @var string
24
     */
25
    public $disposition;
26
27
    /**
28
     * @var string
29
     */
30
    public $content_id;
31
32
    /**
33
     * @param string $content
34
     * @return Attachment
35
     */
36
    public function setContent($content)
37
    {
38
        $this->content = $content;
39
        return $this;
40
    }
41
42
    /**
43
     * @param string $type
44
     * @return Attachment
45
     */
46
    public function setType($type)
47
    {
48
        $this->type = $type;
49
        return $this;
50
    }
51
52
    /**
53
     * @param string $filename
54
     * @return Attachment
55
     */
56
    public function setFilename($filename)
57
    {
58
        $this->filename = $filename;
59
        return $this;
60
    }
61
62
    /**
63
     * @param string $disposition
64
     * @return Attachment
65
     */
66
    public function setDisposition($disposition)
67
    {
68
        $this->disposition = $disposition;
69
        return $this;
70
    }
71
72
    /**
73
     * @param string $content_id
74
     * @return Attachment
75
     */
76
    public function setContentId($content_id)
77
    {
78
        $this->content_id = $content_id;
79
        return $this;
80
    }
81
82
83
}
84