$value) { if ($key === 'array') { if (property_exists($this, 'map')) { $this->map = $value; } else { $this->array = $value; } } else { $this->$key = $value; } } } }