SuccessResponse   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 42
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getMessage() 0 3 1
A isSuccess() 0 3 1
A setSuccess() 0 3 1
A setMessage() 0 5 1
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