Code Duplication    Length = 11-11 lines in 3 locations

src/Entity/Goal.php 3 locations

@@ 116-126 (lines=11) @@
113
     *
114
     * @return \Acquia\LiftClient\Entity\Goal
115
     */
116
    public function setRuleIds(array $ruleIds)
117
    {
118
        if (Utility::arrayDepth($ruleIds) > 1) {
119
            throw new LiftSdkException('Rule Ids argument is more than 1 level deep.');
120
        }
121
122
        // Set only the array values to the rule_ids property.
123
        $this['rule_ids'] = array_values($ruleIds);
124
125
        return $this;
126
    }
127
128
    /**
129
     * Gets the 'rule_ids' parameter.
@@ 147-157 (lines=11) @@
144
     *
145
     * @return \Acquia\LiftClient\Entity\Goal
146
     */
147
    public function setSiteIds(array $siteIds)
148
    {
149
        if (Utility::arrayDepth($siteIds) > 1) {
150
            throw new LiftSdkException('site_ids argument is more than 1 level deep.');
151
        }
152
153
        // Set only the array values to the site_ids property.
154
        $this['site_ids'] = array_values($siteIds);
155
156
        return $this;
157
    }
158
159
    /**
160
     * Gets the 'site_ids' parameter.
@@ 178-188 (lines=11) @@
175
     *
176
     * @return \Acquia\LiftClient\Entity\Goal
177
     */
178
    public function setEventNames(array $eventNames)
179
    {
180
        if (Utility::arrayDepth($eventNames) > 1) {
181
            throw new LiftSdkException('Event Names argument is more than 1 level deep.');
182
        }
183
184
        // Set only the array values to the event_names property.
185
        $this['event_names'] = array_values($eventNames);
186
187
        return $this;
188
    }
189
190
    /**
191
     * Gets the 'rule_ids' parameter.