Code Duplication    Length = 9-9 lines in 3 locations

src/Entity/Content.php 1 location

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

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.