LinkCategory   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getId() 0 2 1
A getCount() 0 2 1
A getName() 0 2 1
1
<?php
2
namespace AL\Common\Model\Link;
3
4
/**
5
 * Maps to the `website_category` table
6
 */
7
class LinkCategory {
8
    private $id;
9
    private $name;
10
    private $count;
11
12
    public function __construct($id, $name, $count = -1) {
13
        $this->id = $id;
14
        $this->name = $name;
15
        $this->count = $count;
16
    }
17
18
    public function getId() {
19
        return $this->id;
20
    }
21
22
    public function getName() {
23
        return $this->name;
24
    }
25
26
    public function getCount() {
27
        return $this->count;
28
    }
29
}
30