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

AssociationSetAnonymousType::setAssociation()   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\EntityContainer;
4
5
use AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\AssociationSetAnonymousType\EndAnonymousType;
6
7
/**
8
 * Class representing AssociationSetAnonymousType
9
 */
10
class AssociationSetAnonymousType
11
{
12
13
    /**
14
     * @property string $name
15
     */
16
    private $name = null;
17
18
    /**
19
     * @property string $association
20
     */
21
    private $association = null;
22
23
    /**
24
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation
25
     */
26
    private $documentation = null;
27
28
    /**
29
     * @property
30
     * \AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\AssociationSetAnonymousType\EndAnonymousType[]
31
     * $end
32
     */
33
    private $end = array(
34
        
35
    );
36
37
    /**
38
     * Gets as name
39
     *
40
     * @return string
41
     */
42
    public function getName()
43
    {
44
        return $this->name;
45
    }
46
47
    /**
48
     * Sets a new name
49
     *
50
     * @param string $name
51
     * @return self
52
     */
53
    public function setName($name)
54
    {
55
        $this->name = $name;
56
        return $this;
57
    }
58
59
    /**
60
     * Gets as association
61
     *
62
     * @return string
63
     */
64
    public function getAssociation()
65
    {
66
        return $this->association;
67
    }
68
69
    /**
70
     * Sets a new association
71
     *
72
     * @param string $association
73
     * @return self
74
     */
75
    public function setAssociation($association)
76
    {
77
        $this->association = $association;
78
        return $this;
79
    }
80
81
    /**
82
     * Gets as documentation
83
     *
84
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType
85
     */
86
    public function getDocumentation()
87
    {
88
        return $this->documentation;
89
    }
90
91
    /**
92
     * Sets a new documentation
93
     *
94
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation
95
     * @return self
96
     */
97
    public function setDocumentation(TDocumentationType $documentation)
0 ignored issues
show
Bug introduced by
The type AlgoWeb\ODataMetadata\Me...iner\TDocumentationType was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
98
    {
99
        $this->documentation = $documentation;
100
        return $this;
101
    }
102
103
    /**
104
     * Adds as end
105
     *
106
     * @return self
107
     * @param
108
     * \AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\AssociationSetAnonymousType\EndAnonymousType
109
     * $end
110
     */
111
    public function addToEnd(EndAnonymousType $end)
112
    {
113
        $this->end[] = $end;
114
        return $this;
115
    }
116
117
    /**
118
     * isset end
119
     *
120
     * @param scalar $index
121
     * @return boolean
122
     */
123
    public function issetEnd($index)
124
    {
125
        return isset($this->end[$index]);
126
    }
127
128
    /**
129
     * unset end
130
     *
131
     * @param scalar $index
132
     * @return void
133
     */
134
    public function unsetEnd($index)
135
    {
136
        unset($this->end[$index]);
137
    }
138
139
    /**
140
     * Gets as end
141
     *
142
     * @return
143
     * \AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\AssociationSetAnonymousType\EndAnonymousType[]
144
     */
145
    public function getEnd()
146
    {
147
        return $this->end;
148
    }
149
150
    /**
151
     * Sets a new end
152
     *
153
     * @param
154
     * \AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\AssociationSetAnonymousType\EndAnonymousType[]
155
     * $end
156
     * @return self
157
     */
158
    public function setEnd(array $end)
159
    {
160
        $this->end = $end;
161
        return $this;
162
    }
163
}
164