Domain   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 52
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setDomain() 0 4 1
A getDomain() 0 4 1
A setCategory() 0 4 1
A getCategory() 0 4 1
1
<?php
2
3
namespace EmanueleMinotto\UrlBlacklistBundle\Entity;
4
5
/**
6
 * Blacklisted domain.
7
 */
8
class Domain
9
{
10
    /**
11
     * @var string
12
     */
13
    private $domain;
14
15
    /**
16
     * @var string
17
     */
18
    private $category;
19
20
    /**
21
     * Set domain.
22
     *
23
     * @param string $domain
24
     */
25 12
    public function setDomain($domain)
26
    {
27 12
        $this->domain = $domain;
28 12
    }
29
30
    /**
31
     * Get domain.
32
     *
33
     * @return string
34
     */
35 12
    public function getDomain()
36
    {
37 12
        return $this->domain;
38
    }
39
40
    /**
41
     * Set category.
42
     *
43
     * @param string $category
44
     */
45 12
    public function setCategory($category)
46
    {
47 12
        $this->category = $category;
48 12
    }
49
50
    /**
51
     * Get category.
52
     *
53
     * @return string
54
     */
55 12
    public function getCategory()
56
    {
57 12
        return $this->category;
58
    }
59
}
60