SuccessResponse::setSuccess()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of PHP CS Fixer.
5
 *
6
 * (c) Fabien Potencier <[email protected]>
7
 *     Dariusz Rumiński <[email protected]>
8
 *
9
 * This source file is subject to the MIT license that is bundled
10
 * with this source code in the file LICENSE.
11
 */
12
13
namespace Etrias\EwarehousingConnector\Response;
14
15
class SuccessResponse
16
{
17
    /** @var bool */
18
    protected $success;
19
20
    /** @var string */
21
    protected $message;
22
23
    /**
24
     * @return bool
25
     */
26
    public function isSuccess()
27
    {
28
        return $this->success;
29
    }
30
31
    /**
32
     * @param bool $success
33
     */
34
    public function setSuccess($success)
35
    {
36
        $this->success = $success;
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getMessage()
43
    {
44
        return $this->message;
45
    }
46
47
    /**
48
     * @param string $message
49
     *
50
     * @return SuccessResponse
51
     */
52
    public function setMessage($message)
53
    {
54
        $this->message = $message;
55
56
        return $this;
57
    }
58
}
59