Completed
Branch master (841483)
by methylbro
02:19
created

GetUserByConstraintResponse::getProperties()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 4
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
/**
4
 * This file is part of the Mediapart Selligent Client API
5
 *
6
 * CC BY-NC-SA <https://github.com/mediapart/selligent>
7
 *
8
 * For the full license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Mediapart\Selligent\Response;
13
14
use Mediapart\Selligent\Response;
15
use Mediapart\Selligent\Properties;
16
17
/**
18
 *
19
 */
20 View Code Duplication
class GetUserByConstraintResponse extends Response
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
21
{
22
    /**
23
     * @var integer
24
     */
25
    protected $GetUserByConstraintResult;
26
27
    /**
28
     * @var Properties
29
     */
30
    protected $ResultSet;
31
32
    /**
33
     *
34
     */
35 1
    public function __construct()
36
    {
37 1
        $this->GetUserByConstraintResult = Response::ERROR_NORESULT;
38 1
        $this->ResultSet = new Properties();
39 1
    }
40
41
    /**
42
     * {@inheritDoc}
43
     */
44 1
    public function getCode()
45
    {
46 1
        return $this->GetUserByConstraintResult;
47
    }
48
49
    /**
50
     * @return Properties
51
     */
52 1
    public function getProperties()
53
    {
54 1
        return $this->ResultSet;
55
    }
56
}
57