Tag   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 18
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getName() 0 4 1
1
<?php
2
3
namespace Documents;
4
5
/**
6
 * @EmbeddedDocument
7
 * @Document
8
 */
9
class Tag
10
{
11
    /**
12
     * @Id(strategy="ASSIGNED")
13
     * @var string
14
     */
15
    protected $name;
16
17
    public function __construct($name)
18
    {
19
        $this->name = $name;
20
    }
21
22
    public function getName()
23
    {
24
        return $this->name;
25
    }
26
}