Completed
Push — master ( badf96...ca0d3c )
by
unknown
07:34
created

SetOption::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
rs 9.4286
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace Net\Bazzline\Component\Curl\Option;
4
5
class SetOption implements OptionInterface
6
{
7
    /** @var int */
8
    private $key;
9
10
    /** @var mixed */
11
    private $value;
12
13
    /**
14
     * @param int $key
15
     * @param mixed $value
16
     */
17
    public function __construct($key, $value)
18
    {
19
        $this->key = $key;
20
        $this->value = $value;
21
    }
22
23
    /**
24
     * @return int
25
     */
26
    public function identifier()
27
    {
28
        return $this->key;
29
    }
30
31
    /**
32
     * @return mixed
33
     */
34
    public function value()
35
    {
36
        return $this->value;
37
    }
38
}