Code Duplication    Length = 9-9 lines in 9 locations

src/MetadataV3/edm/ssdl/EntityContainer.php 1 location

@@ 84-92 (lines=9) @@
81
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TDocumentationType $documentation
82
     * @return self
83
     */
84
    public function setDocumentation(TDocumentationType $documentation)
85
    {
86
        $msg = null;
87
        if (!$documentation->isOK($msg)) {
88
            throw new \InvalidArgumentException($msg);
89
        }
90
        $this->documentation = $documentation;
91
        return $this;
92
    }
93
94
    /**
95
     * Adds as entitySet

src/MetadataV3/edm/ssdl/TAssociationEndType.php 1 location

@@ 142-150 (lines=9) @@
139
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TDocumentationType $documentation
140
     * @return self
141
     */
142
    public function setDocumentation(TDocumentationType $documentation)
143
    {
144
        $msg = null;
145
        if (!$documentation->isOK($msg)) {
146
            throw new \InvalidArgumentException($msg);
147
        }
148
        $this->documentation = $documentation;
149
        return $this;
150
    }
151
    
152
    public function isOK(&$msg = null)
153
    {

src/MetadataV3/edm/ssdl/TAssociationType.php 1 location

@@ 83-91 (lines=9) @@
80
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TDocumentationType $documentation
81
     * @return self
82
     */
83
    public function setDocumentation(TDocumentationType $documentation)
84
    {
85
        $msg = null;
86
        if (!$documentation->isOK($msg)) {
87
            throw new \InvalidArgumentException($msg);
88
        }
89
        $this->documentation = $documentation;
90
        return $this;
91
    }
92
93
    /**
94
     * Adds as end

src/MetadataV3/edm/ssdl/TConstraintType.php 1 location

@@ 47-55 (lines=9) @@
44
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TDocumentationType $documentation
45
     * @return self
46
     */
47
    public function setDocumentation(TDocumentationType $documentation)
48
    {
49
        $msg = null;
50
        if (!$documentation->isOK($msg)) {
51
            throw new \InvalidArgumentException($msg);
52
        }
53
        $this->documentation = $documentation;
54
        return $this;
55
    }
56
57
    /**
58
     * Gets as principal

src/MetadataV3/edm/ssdl/TEntityTypeType.php 1 location

@@ 76-84 (lines=9) @@
73
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TDocumentationType $documentation
74
     * @return self
75
     */
76
    public function setDocumentation(TDocumentationType $documentation)
77
    {
78
        $msg = null;
79
        if (!$documentation->isOK($msg)) {
80
            throw new \InvalidArgumentException($msg);
81
        }
82
        $this->documentation = $documentation;
83
        return $this;
84
    }
85
86
    /**
87
     * Adds as propertyRef

src/MetadataV3/edm/ssdl/TFunctionType.php 1 location

@@ 368-376 (lines=9) @@
365
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TDocumentationType $documentation
366
     * @return self
367
     */
368
    public function setDocumentation(TDocumentationType $documentation)
369
    {
370
        $msg = null;
371
        if (!$documentation->isOK($msg)) {
372
            throw new \InvalidArgumentException($msg);
373
        }
374
        $this->documentation = $documentation;
375
        return $this;
376
    }
377
378
    /**
379
     * Adds as parameter

src/MetadataV3/edm/ssdl/TParameterType.php 1 location

@@ 256-264 (lines=9) @@
253
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TDocumentationType $documentation
254
     * @return self
255
     */
256
    public function setDocumentation(TDocumentationType $documentation)
257
    {
258
        $msg = null;
259
        if (!$documentation->isOK($msg)) {
260
            throw new \InvalidArgumentException($msg);
261
        }
262
        $this->documentation = $documentation;
263
        return $this;
264
    }
265
266
    public function isOK(&$msg = null)
267
    {

src/MetadataV3/edm/ssdl/TReferentialConstraintRoleElementType.php 1 location

@@ 78-86 (lines=9) @@
75
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TDocumentationType $documentation
76
     * @return self
77
     */
78
    public function setDocumentation(TDocumentationType $documentation)
79
    {
80
        $msg = null;
81
        if (!$documentation->isOK($msg)) {
82
            throw new \InvalidArgumentException($msg);
83
        }
84
        $this->documentation = $documentation;
85
        return $this;
86
    }
87
88
    /**
89
     * Adds as propertyRef

src/MetadataV3/edm/ssdl/Groups/GEmptyElementExtensibilityTrait.php 1 location

@@ 33-41 (lines=9) @@
30
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TDocumentationType $documentation
31
     * @return self
32
     */
33
    public function setDocumentation(TDocumentationType $documentation)
34
    {
35
        $msg = null;
36
        if (!$documentation->isOK($msg)) {
37
            throw new \InvalidArgumentException($msg);
38
        }
39
        $this->documentation = $documentation;
40
        return $this;
41
    }
42
43
    public function isExtensibilityElementOK(&$msg = null)
44
    {