Licensee   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
dl 0
loc 50
ccs 9
cts 9
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A getName() 0 3 1
A setId() 0 3 1
A setName() 0 3 1
1
<?php
2
3
/* Copyright (C) 2015 Michael Giesler
4
 *
5
 * This file is part of Dembelo.
6
 *
7
 * Dembelo is free software: you can redistribute it and/or modify
8
 * it under the terms of the GNU Affero General Public License as published by
9
 * the Free Software Foundation, either version 3 of the License, or
10
 * (at your option) any later version.
11
 *
12
 * Dembelo is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
 * GNU Affero General Public License 3 for more details.
16
 *
17
 * You should have received a copy of the GNU Affero General Public License 3
18
 * along with Dembelo. If not, see <http://www.gnu.org/licenses/>.
19
 */
20
21
22
/**
23
 * @package DembeloMain
24
 */
25
26
namespace DembeloMain\Document;
27
28
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
29
use Symfony\Component\Validator\Constraints as Assert;
30
31
/**
32
 * Class Licensee
33
 *
34
 * @MongoDB\Document
35
 * @MongoDB\Document(repositoryClass="\DembeloMain\Model\Repository\Doctrine\ODM\LicenseeRepository")
36
 */
37
class Licensee
38
{
39
    /**
40
     * @MongoDB\Id
41
     */
42
    protected $id;
43
44
    /**
45
     * @MongoDB\Field(type="string")
46
     */
47
    protected $name;
48
49
    /**
50
     * gets the mongodb id
51
     *
52
     * @return string
53
     */
54 2
    public function getId()
55
    {
56 2
        return $this->id;
57
    }
58
59
    /**
60
     * sets the mongoDB id
61
     *
62
     * @param string $id
63
     */
64 2
    public function setId($id)
65
    {
66 2
        $this->id = $id;
67 2
    }
68
69
    /**
70
     * gets the name
71
     *
72
     * @return string
73
     */
74 2
    public function getName()
75
    {
76 2
        return $this->name;
77
    }
78
79
    /**
80
     * sets the name
81
     *
82
     * @param string $name
83
     */
84 2
    public function setName($name)
85
    {
86 2
        $this->name = $name;
87 2
    }
88
}
89