Test Failed
Pull Request — develop (#4)
by Stephen
06:10
created

UserAddResponse   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 26
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A withReturn() 0 6 1
A getReturn() 0 3 1
1
<?php
2
3
namespace Spinen\Ncentral\Type;
4
5
6
use Phpro\SoapClient\Type\ResultInterface;
7
8
class UserAddResponse implements ResultInterface
9
{
10
11
    /**
12
     * @var int
13
     */
14
    private $return;
15
16
    /**
17
     * @return int
18
     */
19
    public function getReturn()
20
    {
21
        return $this->return;
22
    }
23
24
    /**
25
     * @param int $return
26
     * @return UserAddResponse
27
     */
28
    public function withReturn($return)
29
    {
30
        $new = clone $this;
31
        $new->return = $return;
32
33
        return $new;
34
    }
35
36
37
}
38
39