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

SetOption   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 34
rs 10

3 Methods

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