Code Duplication    Length = 9-9 lines in 3 locations

src/Entity/Goal.php 2 locations

@@ 56-64 (lines=9) @@
53
     *
54
     * @return \Acquia\LiftClient\Entity\Goal
55
     */
56
    public function setName($name)
57
    {
58
        if (!is_string($name)) {
59
            throw new LiftSdkException('Argument must be an instance of string.');
60
        }
61
        $this['name'] = $name;
62
63
        return $this;
64
    }
65
66
    /**
67
     * Gets the 'name' parameter.
@@ 85-93 (lines=9) @@
82
     *
83
     * @return \Acquia\LiftClient\Entity\Goal
84
     */
85
    public function setDescription($description)
86
    {
87
        if (!is_string($description)) {
88
            throw new LiftSdkException('Argument must be an instance of string.');
89
        }
90
        $this['description'] = $description;
91
92
        return $this;
93
    }
94
95
    /**
96
     * Gets the 'description' parameter.

src/Entity/Capture.php 1 location

@@ 182-190 (lines=9) @@
179
     *
180
     * @return \Acquia\LiftClient\Entity\Capture
181
     */
182
    public function setUrl($url)
183
    {
184
        if (!is_string($url)) {
185
            throw new LiftSdkException('Argument must be an instance of string.');
186
        }
187
        $this['url'] = $url;
188
189
        return $this;
190
    }
191
192
    /**
193
     * Sets the 'site_id' parameter.