ResolutionConstraint   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 40
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getParameters() 0 4 1
A getType() 0 4 1
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