@param $key
@param $value

@return $this
762313
public function setData($key, $value)
    {
        if (property_exists($this, $key)) {
            return $this->{$key} = $value;
        }

        /**
         * This should be after initialized message
         */
        if ($key === self::P_MESSAGE_ARG) {
            return $this->setMessageArg($value);
        }

        $this->data[$key] = $value;

        return $this;
    }
1359136
public function put($key = null, $value = null)
    {
        $this->offsetSet($key, $value);
        return $this;
    }
1175722
public function set($key, $value)
	{
		$this->data[$key] = $this->close($value);

		return $this;
	}
1065001
public function set($key, $value = null)
    {
        if (is_array($key)) {
            foreach ($key as $subkey => $value) {
                $this->set($subkey, $value);
            }
        } else {
            $this->parameters[$key] = $value;
        }
        return $this;
    }
270561
public function set($key, $value)
    {
        if (method_exists($this, 'validate' . ucfirst($key))) {
            $value = call_user_func([$this, 'validate' . ucfirst($key)], $value);
        }

        $this->checkKeyExistInDefault($key);

        $this->data[$key] = $value;

        return $this;
    }
470713
public function set( $key, $value ) {
		$key = $this->addKeyprefixIfNeeded( $key );
		$this->params[$key] = $value;
		return $this;
	}
1316827
public function set($key, $value)
    {
        $this->data[$key] = $value;
        $this->version++;
        
        return $this;
    }
127873
public function set_config($key, $value)
	{
		\Arr::set($this->config, $key, $value);

		return $this;
	}
700027
public function set($key, $value)
    {
        $this->session->set(self::BASE_KEY.'.'.$key, $value);

        return $this;
    }
121855
public function set($key, $value) {
        $key = $this->getAbsoluteConfigKey($key);

        array_set($this->config, $key, $value);

        return $this;
    }
1324932
public function set($key, $value) : HashMap
    {
        $values = $this->_set($key, $value, false);
        $this->setValues($values);
        return $this;
    }
318103
public function add($key, $value)
    {
        if (!$key) {
            return $this;
        }

        $this->param[$key] = $value;

        return $this;
    }
949988
public function setParameter(string $key, $value): self
    {
        $this->parameters->set($key, $value);

        return $this;
    }
498345
public function setOption($key, $value=null)
    {
        if (is_array($key)) {
            foreach ($key as $k => $v) {
                $this->setOption($k, $v);
            }
        } else {
            $this->options[$key] = $value;
            
            if ($this->storage && in_array($key, StorageInterface::AllowOptions)) {
                $this->storage->setOption($key, $value);
            }
        }
        return $this;
    }
714182
function set($key, $value) {
        if(!$this->enabled) {
            return $this;
        }
        
        parent::set($key, $value);
        if($this !== $this->client->presences) {
            $this->client->presences->set($key, $value);
        }
        
        return $this;
    }
1242601
public function setParam($key, $value)
        {
            $key = (string) $key;

            if ((null === $value) && isset($this->_params[$key])) {
                unset($this->_params[$key]);
            } elseif (null !== $value) {
                $this->_params[$key] = $value;
            }

            return $this;
        }
143061
public function set($key, $value)
    {
        if (! is_null($key)) {
            Arr::set($this->payload, $key, $value);
        }

        return $this;
    }