EmailFileAttachment   A
last analyzed

Complexity

Total Complexity 11

Size/Duplication

Total Lines 123
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 22
c 1
b 0
f 0
dl 0
loc 123
rs 10
wmc 11

11 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A getInline() 0 3 1
A setId() 0 4 1
A getContentType() 0 3 1
A setInline() 0 4 1
A setContentType() 0 4 1
A setBody() 0 4 1
A setFileName() 0 4 1
A __construct() 0 3 1
A getBody() 0 3 1
A getFileName() 0 3 1
1
<?php
2
3
namespace SForce\Wsdl;
4
5
class EmailFileAttachment
6
{
7
    /**
8
     * @var base64Binary
9
     */
10
    protected $body = null;
11
12
    /**
13
     * @var string
14
     */
15
    protected $contentType = null;
16
17
    /**
18
     * @var string
19
     */
20
    protected $fileName = null;
21
22
    /**
23
     * @var ID
24
     */
25
    protected $id = null;
26
27
    /**
28
     * @var boolean
29
     */
30
    protected $inline = null;
31
32
    /**
33
     * @param string $fileName
34
     */
35
    public function __construct($fileName = null)
36
    {
37
        $this->fileName = $fileName;
38
    }
39
40
    /**
41
     * @return base64Binary
42
     */
43
    public function getBody()
44
    {
45
        return $this->body;
46
    }
47
48
    /**
49
     * @param base64Binary $body
50
     * @return \SForce\Wsdl\EmailFileAttachment
51
     */
52
    public function setBody($body)
53
    {
54
        $this->body = $body;
55
        return $this;
56
    }
57
58
    /**
59
     * @return string
60
     */
61
    public function getContentType()
62
    {
63
        return $this->contentType;
64
    }
65
66
    /**
67
     * @param string $contentType
68
     * @return \SForce\Wsdl\EmailFileAttachment
69
     */
70
    public function setContentType($contentType)
71
    {
72
        $this->contentType = $contentType;
73
        return $this;
74
    }
75
76
    /**
77
     * @return string
78
     */
79
    public function getFileName()
80
    {
81
        return $this->fileName;
82
    }
83
84
    /**
85
     * @param string $fileName
86
     * @return \SForce\Wsdl\EmailFileAttachment
87
     */
88
    public function setFileName($fileName)
89
    {
90
        $this->fileName = $fileName;
91
        return $this;
92
    }
93
94
    /**
95
     * @return ID
96
     */
97
    public function getId()
98
    {
99
        return $this->id;
100
    }
101
102
    /**
103
     * @param ID $id
104
     * @return \SForce\Wsdl\EmailFileAttachment
105
     */
106
    public function setId($id)
107
    {
108
        $this->id = $id;
109
        return $this;
110
    }
111
112
    /**
113
     * @return boolean
114
     */
115
    public function getInline()
116
    {
117
        return $this->inline;
118
    }
119
120
    /**
121
     * @param boolean $inline
122
     * @return \SForce\Wsdl\EmailFileAttachment
123
     */
124
    public function setInline($inline)
125
    {
126
        $this->inline = $inline;
127
        return $this;
128
    }
129
}
130