Failed Conditions
Pull Request — master (#1)
by Tibor
04:33 queued 01:50
created

EntityData::getUrlKey()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Tkotosz\CatalogRouter\Model;
4
5
class EntityData
6
{
7
    /**
8
     * @var string
9
     */
10
    private $type;
11
    
12
    /**
13
     * @var int
14
     */
15
    private $id;
16
    
17
    /**
18
     * @var string
19
     */
20
    private $urlKey;
21
    
22
    /**
23
     * @param string $type
24
     * @param int    $id
25
     * @param string $urlKey
26
     */
27
    public function __construct(string $type, int $id, string $urlKey)
28
    {
29
        $this->type = $type;
30
        $this->id = $id;
31
        $this->urlKey = $urlKey;
32
    }
33
    
34
    public function getType() : string
35
    {
36
        return $this->type;
37
    }
38
39
    public function getId() : int
40
    {
41
        return $this->id;
42
    }
43
44
    public function getUrlKey() : string
45
    {
46
        return $this->urlKey;
47
    }
48
}
49