Tag::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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
}