Completed
Pull Request — master (#138)
by
unknown
02:54
created

EmbeddedReference::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Doctrine\Tests\Models\Embedded;
4
5
/**
6
 * @Document
7
 */
8
class EmbeddedReference {
9
    /**
10
     * @Id(strategy="ASSIGNED")
11
     */
12
    public $id;
13
14
    /**
15
     * @Field
16
     */
17
    protected $name;
18
    
19
    public function getName()
20
    {
21
        return $this->name;
22
    }
23
24
    public function setName($name)
25
    {
26
        $this->name = $name;
27
        
28
        return $this;
29
    }    
30
}
31