Domain::getDomain()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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