Completed
Pull Request — develop (#311)
by
unknown
17:12
created

AttachedEntityReference::getEntityId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
7
 * @license   MIT
8
 * @author Miroslav Fedeleš <[email protected]>
9
 * @since 0.28
10
 */
11
namespace Core\Entity;
12
13
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
14
15
/**
16
 * @ODM\EmbeddedDocument
17
 */
18
class AttachedEntityReference
19
{
20
21
    /**
22
     * @var string
23
     * @ODM\String
24
     */
25
    protected $repository;
26
27
    /**
28
     * @var string
29
     * @ODM\String
30
     */
31
    protected $entityId;
32
33
    /**
34
     * @return string
35
     */
36
    public function getRepository()
37
    {
38
        return $this->repository;
39
    }
40
41
    /**
42
     * @param string $repository
43
     * @return AttachedEntityReference
44
     */
45
    public function setRepository($repository)
46
    {
47
        $this->repository = $repository;
48
        return $this;
49
    }
50
51
    /**
52
     * @return string
53
     */
54
    public function getEntityId()
55
    {
56
        return $this->entityId;
57
    }
58
59
    /**
60
     * @param string $entityId
61
     * @return AttachedEntityReference
62
     */
63
    public function setEntityId($entityId)
64
    {
65
        $this->entityId = $entityId;
66
        return $this;
67
    }
68
}
69