Code Duplication    Length = 9-9 lines in 2 locations

src/Entity/Probability.php 1 location

@@ 26-34 (lines=9) @@
23
     *
24
     * @return \Acquia\LiftClient\Entity\Probability
25
     */
26
    public function setContentId($contentId)
27
    {
28
        if (!is_string($contentId)) {
29
            throw new LiftSdkException('Argument must be an instance of string.');
30
        }
31
        $this['content_id'] = $contentId;
32
33
        return $this;
34
    }
35
36
    /**
37
     * Gets the 'id' parameter.

src/Entity/Capture.php 1 location

@@ 775-783 (lines=9) @@
772
     *
773
     * @return \Acquia\LiftClient\Entity\Capture
774
     */
775
    public function setContentId($contentId)
776
    {
777
        if (!is_string($contentId)) {
778
            throw new LiftSdkException('Argument must be an instance of string.');
779
        }
780
        $this['content_id'] = $contentId;
781
782
        return $this;
783
    }
784
785
    /**
786
     * Sets the 'content_type' parameter.