Code Duplication    Length = 9-9 lines in 2 locations

src/Entity/CapturePayload.php 1 location

@@ 77-85 (lines=9) @@
74
     *
75
     * @return \Acquia\LiftClient\Entity\CapturePayload
76
     */
77
    public function setDoNotTrack($doNotTrack)
78
    {
79
        if (!is_bool($doNotTrack)) {
80
            throw new LiftSdkException('Argument must be an instance of boolean.');
81
        }
82
        $this['do_not_track'] = $doNotTrack;
83
84
        return $this;
85
    }
86
87
    /**
88
     * Sets the 'return_segments' parameter.

src/Entity/Decide.php 1 location

@@ 38-46 (lines=9) @@
35
     *
36
     * @return \Acquia\LiftClient\Entity\Decide
37
     */
38
    public function setDoNotTrack($doNotTrack)
39
    {
40
        if (!is_bool($doNotTrack)) {
41
            throw new LiftSdkException('Argument must be an instance of boolean.');
42
        }
43
        $this['do_not_track'] = $doNotTrack;
44
45
        return $this;
46
    }
47
48
    /**
49
     * Sets the 'url' parameter.