Passed
Push — master ( 2aad05...4fe473 )
by Yo
02:45
created

Support::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
crap 1
1
<?php
2
namespace Yoanm\ComposerConfigManager\Domain\Model;
3
4
class Support implements ConfigurationItemInterface
5
{
6
    /** @var string */
7
    private $type;
8
    /** @var string */
9
    private $url;
10
11
    /**
12
     * @param string $type
13
     * @param string $url
14
     */
15 3
    public function __construct($type, $url)
16
    {
17 3
        $this->type = $type;
18 3
        $this->url = $url;
19 3
    }
20
21
    /**
22
     * @return string
23
     */
24 3
    public function getType()
25
    {
26 3
        return $this->type;
27
    }
28
29
    /**
30
     * @return string
31
     */
32 3
    public function getUrl()
33
    {
34 3
        return $this->url;
35
    }
36
37
    /**
38
     * {@inheritdoc}
39
     */
40
    public function getItemId()
41
    {
42
        return $this->getType();
43
    }
44
}
45