ResolutionConstraint::getType()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace ArgumentResolver\Resolution;
4
5
class ResolutionConstraint
6
{
7
    const STRICT_MATCHING = 1;
8
9
    /**
10
     * @var int
11
     */
12
    private $type;
13
14
    /**
15
     * @var array
16
     */
17
    private $parameters;
18
19
    /**
20
     * @param int   $type
21
     * @param array $parameters
22
     */
23
    public function __construct($type, array $parameters = [])
24
    {
25
        $this->type = $type;
26
        $this->parameters = $parameters;
27
    }
28
29
    /**
30
     * @return array
31
     */
32
    public function getParameters()
33
    {
34
        return $this->parameters;
35
    }
36
37
    /**
38
     * @return int
39
     */
40
    public function getType()
41
    {
42
        return $this->type;
43
    }
44
}
45