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['id'] = $contentId;
32
33
        return $this;
34
    }
35
36
    /**
37
     * Gets the 'id' parameter.

src/Entity/Capture.php 1 location

@@ 782-790 (lines=9) @@
779
     *
780
     * @return \Acquia\LiftClient\Entity\Capture
781
     */
782
    public function setContentId($contentId)
783
    {
784
        if (!is_string($contentId)) {
785
            throw new LiftSdkException('Argument must be an instance of string.');
786
        }
787
        $this['content_id'] = $contentId;
788
789
        return $this;
790
    }
791
792
    /**
793
     * Sets the 'content_uuid' parameter.