Passed
Push — master ( c03365...9d1091 )
by Alex
07:25
created

TConstraintType::setDocumentation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace AlgoWeb\ODataMetadata\MetadataV3\edm;
4
5
/**
6
 * Class representing TConstraintType
7
 *
8
 *
9
 * XSD Type: TConstraint
10
 */
11
class TConstraintType
12
{
13
14
    /**
15
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation
16
     */
17
    private $documentation = null;
18
19
    /**
20
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TReferentialConstraintRoleElementType $principal
21
     */
22
    private $principal = null;
23
24
    /**
25
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TReferentialConstraintRoleElementType $dependent
26
     */
27
    private $dependent = null;
28
29
    /**
30
     * Gets as documentation
31
     *
32
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType
33
     */
34
    public function getDocumentation()
35
    {
36
        return $this->documentation;
37
    }
38
39
    /**
40
     * Sets a new documentation
41
     *
42
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation
43
     * @return self
44
     */
45
    public function setDocumentation(TDocumentationType $documentation)
46
    {
47
        $this->documentation = $documentation;
48
        return $this;
49
    }
50
51
    /**
52
     * Gets as principal
53
     *
54
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TReferentialConstraintRoleElementType
55
     */
56
    public function getPrincipal()
57
    {
58
        return $this->principal;
59
    }
60
61
    /**
62
     * Sets a new principal
63
     *
64
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TReferentialConstraintRoleElementType $principal
65
     * @return self
66
     */
67
    public function setPrincipal(TReferentialConstraintRoleElementType $principal)
68
    {
69
        $this->principal = $principal;
70
        return $this;
71
    }
72
73
    /**
74
     * Gets as dependent
75
     *
76
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TReferentialConstraintRoleElementType
77
     */
78
    public function getDependent()
79
    {
80
        return $this->dependent;
81
    }
82
83
    /**
84
     * Sets a new dependent
85
     *
86
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TReferentialConstraintRoleElementType $dependent
87
     * @return self
88
     */
89
    public function setDependent(TReferentialConstraintRoleElementType $dependent)
90
    {
91
        $this->dependent = $dependent;
92
        return $this;
93
    }
94
}
95