EntityData   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 44
c 0
b 0
f 0
wmc 4
lcom 0
cbo 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getType() 0 4 1
A getId() 0 4 1
A getUrlKey() 0 4 1
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