Completed
Push — feature/service-wrapper-for-sw... ( faf928...5dac9b )
by Samuel
13:45 queued 01:09
created

XDynamicKey::setRefField()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
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 5
rs 9.4286
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
/**
3
 * Part of JSON definition: "target.fields.x-dynamic-key"
4
 */
5
namespace Graviton\GeneratorBundle\Definition\Schema;
6
7
/**
8
 * @author   List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
9
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
10
 * @link     http://swisscom.ch
11
 */
12
class XDynamicKey
13
{
14
    /**
15
     * @var string
16
     */
17
    private $documentId;
18
19
    /**
20
     * @var string
21
     */
22
    private $repositoryMethod;
23
24
    /**
25
     * @var string
26
     */
27
    private $refField = 'getRef';
28
29
    /**
30
     * @return string
31
     */
32
    public function getDocumentId()
33
    {
34
        return $this->documentId;
35
    }
36
37
    /**
38
     * @param string $documentId document-id field
39
     * @return $this
40
     */
41
    public function setDocumentId($documentId)
42
    {
43
        $this->documentId = $documentId;
44
        return $this;
45
    }
46
47
    /**
48
     * @return string
49
     */
50
    public function getRepositoryMethod()
51
    {
52
        return $this->repositoryMethod;
53
    }
54
55
    /**
56
     * @param string $repositoryMethod repository-method field
57
     * @return $this
58
     */
59
    public function setRepositoryMethod($repositoryMethod)
60
    {
61
        $this->repositoryMethod = $repositoryMethod;
62
        return $this;
63
    }
64
65
    /**
66
     * @return string
67
     */
68
    public function getRefField()
69
    {
70
        return $this->refField;
71
    }
72
73
    /**
74
     * @param string $refField reference the dynamic field is resolved through
75
     * @return $this
76
     */
77
    public function setRefField($refField)
78
    {
79
        $this->refField = $refField;
80
        return $this;
81
    }
82
}
83