SpamCheck::setEnable()   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\MailSettings;
3
4
class SpamCheck
5
{
6
    /**
7
     * @var bool
8
     */
9
    public $enable;
10
11
    /**
12
     * @var int
13
     */
14
    public $threshold;
15
16
    /**
17
     * @var string
18
     */
19
    public $post_to_url;
20
21
    /**
22
     * @param boolean $enable
23
     * @return SpamCheck
24
     */
25
    public function setEnable($enable)
26
    {
27
        $this->enable = $enable;
28
        return $this;
29
    }
30
31
    /**
32
     * @param int $threshold
33
     * @return SpamCheck
34
     */
35
    public function setThreshold($threshold)
36
    {
37
        $this->threshold = $threshold;
38
        return $this;
39
    }
40
41
    /**
42
     * @param string $post_to_url
43
     * @return SpamCheck
44
     */
45
    public function setPostToUrl($post_to_url)
46
    {
47
        $this->post_to_url = $post_to_url;
48
        return $this;
49
    }
50
51
52
}
53