Code Duplication    Length = 9-9 lines in 2 locations

src/Entity/Capture.php 1 location

@@ 201-209 (lines=9) @@
198
     *
199
     * @return \Acquia\LiftClient\Entity\Capture
200
     */
201
    public function setSiteId($siteId)
202
    {
203
        if (!is_string($siteId)) {
204
            throw new LiftSdkException('Argument must be an instance of string.');
205
        }
206
        $this['site_id'] = $siteId;
207
208
        return $this;
209
    }
210
211
    /**
212
     * Sets the 'referral_url' parameter.

src/Entity/Captures.php 1 location

@@ 117-125 (lines=9) @@
114
     *
115
     * @return \Acquia\LiftClient\Entity\Captures
116
     */
117
    public function setSiteId($siteId)
118
    {
119
        if (!is_string($siteId)) {
120
            throw new LiftSdkException('Argument must be an instance of string.');
121
        }
122
        $this['site_id'] = $siteId;
123
124
        return $this;
125
    }
126
127
    /**
128
     * Sets the 'captures' parameter.