Code Duplication    Length = 16-17 lines in 2 locations

module/Settings/src/Settings/Entity/SettingsContainer.php 1 location

@@ 116-132 (lines=17) @@
113
        
114
    }
115
    
116
    public function __set($property, $value)
117
    {
118
        $this->checkWriteAccess();
119
        
120
        $setter = 'set' . ucfirst($property);
121
        if (method_exists($this, $setter)) {
122
            $this->$setter($value);
123
            return;
124
        }
125
        
126
        if (property_exists($this, $property)) {
127
            $this->$property = $value;
128
            return;
129
        }
130
        
131
        $this->set($property, $value);
132
    }
133
    
134
135
    /**

module/Jobs/src/Jobs/Entity/TemplateValues.php 1 location

@@ 262-277 (lines=16) @@
259
        return $this->get($property);
260
    }
261
262
    public function __set($property, $value)
263
    {
264
        //$this->checkWriteAccess();
265
        $setter = 'set' . ucfirst($property);
266
        if (method_exists($this, $setter)) {
267
            $this->$setter($value);
268
            return;
269
        }
270
271
        if (property_exists($this, $property)) {
272
            $this->$property = $value;
273
            return;
274
        }
275
276
        $this->set($property, $value);
277
    }
278
279
    public function __isset($property)
280
    {