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

Resolution::argumentName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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