Code Duplication    Length = 9-13 lines in 3 locations

src/MetadataV3/mapping/cs/TAssociationSetMappingType.php 1 location

@@ 157-165 (lines=9) @@
154
     * @param string $queryView
155
     * @return self
156
     */
157
    public function setQueryView($queryView)
158
    {
159
        if (null != $queryView && !$this->isStringNotNullOrEmpty($queryView)) {
160
            $msg = 'Query view cannot be empty';
161
            throw new \InvalidArgumentException($msg);
162
        }
163
        $this->queryView = $queryView;
164
        return $this;
165
    }
166
167
    /**
168
     * Adds as endProperty

src/MetadataV3/mapping/cs/TEntitySetMappingType.php 2 locations

@@ 160-168 (lines=9) @@
157
     * @return self
158
     * @param \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TQueryViewType $queryView
159
     */
160
    public function addToQueryView(TQueryViewType $queryView)
161
    {
162
        $msg = null;
163
        if (!$queryView->isOK($msg)) {
164
            throw new \InvalidArgumentException($msg);
165
        }
166
        $this->queryView[] = $queryView;
167
        return $this;
168
    }
169
170
    /**
171
     * isset queryView
@@ 208-220 (lines=13) @@
205
     * @param \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TQueryViewType[] $queryView
206
     * @return self
207
     */
208
    public function setQueryView(array $queryView)
209
    {
210
        $msg = null;
211
        if (!$this->isValidArrayOK(
212
            $queryView,
213
            '\AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TQueryViewType',
214
            $msg
215
        )) {
216
            throw new \InvalidArgumentException($msg);
217
        }
218
        $this->queryView = $queryView;
219
        return $this;
220
    }
221
222
    /**
223
     * Adds as entityTypeMapping