Inserts an element at the beginning of the array.
If you set both params, that first param is the key, and second is the value,
else first param is the value, and the second is ignored.

@param mixed $k
@param mixed $v

@return $this
549952
public function prepend($k, $v = null)
    {
        $array = $this->val();

        if (!$this->isNull($v)) {
            $array = array_reverse($array, true);
            $array[$k] = $v;
            $array = array_reverse($array, true);
        } else {
            array_unshift($array, $k);
        }

        $this->val($array);

        return $this;
    }
569671
public function setStartPosition(ChildPosition $v = null)
    {
        if ($v === null) {
            $this->setStartPositionId(NULL);
        } else {
            $this->setStartPositionId($v->getId());
        }

        $this->aStartPosition = $v;

        // Add binding for other direction of this n:n relationship.
        // If this object has already been added to the ChildPosition object, it will not be re-added.
        if ($v !== null) {
            $v->addSkillRelatedByStartPositionId($this);
        }


        return $this;
    }
1102574
public function insertBefore(int $key, $value): self
    {
        $this->splice($key, 0, $value);

        return $this;
    }
1195305
public static function set($k,$v=null) {
        if(is_array($k)) {
            return self::$o->config = array_merge(self::$o->config,$k);
        }
        return self::$o->config[$k]=$v;
    }
144827
function set($key, $value)
    {
        parent::set($key, $value);


        $key   = (string) $key;
        $realm = $this->getRealm();
        $value = $this->getDataInterchange()->makeForward($value);

        try {

            // Find
            //
            $this->pdo->beginTransaction();

            $sql = "DELETE FROM `KVStore` WHERE `realm` = '$realm' and `key` = '$key';";
            $sql.= "INSERT INTO `KVStore` (`realm`, `key`, `value`) VALUES ('$realm', '$key', '$value');";
            $this->pdo->exec($sql);

            $this->pdo->commit();


        } catch (\Exception $e) {
            throw new exWriteError('Error While Write To Pdo Client.', $e->getCode(), $e);
        }

        return $this;
    }
192100
public function set($key, $value) {
    if ($this->exists($key)) {
      $index = $this->getKeyPosition($key);
      $this->values[$index] = $value;
      return $this;
    }
    return $this->add($key, $value);
  }
206146
public function add($key, $value): self
    {
        if (is_array($key)) {
            @ [$key, $value] = $key;
        }

        return $this->set($key, $value);
    }
1365503
public function set($key, $value = null)
    {
        if (is_array($key))
        {
            foreach ($key as $name => $value)
            {
                $this->_data[$name] = $value;
            }
        }
        else
        {
            $this->_data[$key] = $value;
        }

        return $this;
    }
792028
public function setPost($key, $value = null) {
        if (is_array($key)) {
            $this->POST = $key;
        } else {
            $this->POST[$key] = $value;
        }
        return $this;
    }
704393
public function setStartPositionId($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->start_position_id !== $v) {
            $this->start_position_id = $v;
            $this->modifiedColumns[SkillTableMap::COL_START_POSITION_ID] = true;
        }

        if ($this->aStartPosition !== null && $this->aStartPosition->getId() !== $v) {
            $this->aStartPosition = null;
        }

        return $this;
    }
509503
public boolean add(final K key, final V value) {
        if (!this.map.containsKey(key)) {
            this.map.put(key, new ArrayList<V>());
        }
        return this.map.get(key).add(value);
    }
542457
public function setId($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->id !== $v) {
            $this->id = $v;
            $this->modifiedColumns[PersonTableMap::ID] = true;
        }


        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;
        }
371424
public V put(K key, V value) {
	V old = super.put(key, value);
	if (size() > bound) {
	    remove(firstKey());
	}
	return old;
    }
1294544
public function setKstrukturId($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->kstruktur_id !== $v) {
            $this->kstruktur_id = $v;
            $this->modifiedColumns[SkillTableMap::COL_KSTRUKTUR_ID] = true;
        }

        if ($this->aKstrukturRoot !== null && $this->aKstrukturRoot->getId() !== $v) {
            $this->aKstrukturRoot = null;
        }

        return $this;
    }
729620
public function assign($key, $val = null)
    {
        if (is_array($key)) {
            $this->args = array_merge($this->args, $key);
        } else {
            $this->args[$key] = $val;
        }
        return $this;
    }
1171137
public V put(K1 key1, K2 key2, V value) {
        return getOrPutGetNew(key1).put(key2, value);
    }