Completed
Pull Request — master (#7)
by Daniel
05:04
created

Resolution   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 67
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 67
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A value() 0 4 1
A position() 0 4 1
A priority() 0 4 1
A argumentName() 0 4 1
1
<?php
2
3
namespace ArgumentResolver\Resolution;
4
5
class Resolution
6
{
7
    /**
8
     * @var int
9
     */
10
    private $position;
11
12
    /**
13
     * @var mixed
14
     */
15
    private $value;
16
17
    /**
18
     * @var int
19
     */
20
    private $priority;
21
22
    /**
23
     * @var string
24
     */
25
    private $argumentName;
26
27
    /**
28
     * @param int   $position
29
     * @param mixed $value
30
     * @param int   $priority
31
     */
32
    public function __construct($position, $argumentName, $value, $priority)
33
    {
34
        $this->position = $position;
35
        $this->argumentName = $argumentName;
36
        $this->value = $value;
37
        $this->priority = $priority;
38
    }
39
40
    /**
41
     * @return mixed
42
     */
43
    public function value()
44
    {
45
        return $this->value;
46
    }
47
48
    /**
49
     * @return int
50
     */
51
    public function position()
52
    {
53
        return $this->position;
54
    }
55
56
    /**
57
     * @return int
58
     */
59
    public function priority()
60
    {
61
        return $this->priority;
62
    }
63
64
    /**
65
     * @return string
66
     */
67
    public function argumentName()
68
    {
69
        return $this->argumentName;
70
    }
71
}
72