src/Type/ArrayType.php
public function set($indexOrName, $value, $force = true)
    {
        if (isset($this->arrayVar[$indexOrName]) && $force === false) {
            return false;
        }
        $this->arrayVar[$indexOrName] = $value;
        return true;
    }
public function set($indexOrName, $value, $force = true)
    {
        if (isset($this->arrayVar[$indexOrName]) && $force === false) {
            return false;
        }
        $this->arrayVar[$indexOrName] = $value;
        return true;
    }
public function set ( $ indexOrName , $ value , $ force = true ) { if ( isset ( $ this -> arrayVar [ $ indexOrName ] ) && $ force === false ) { return false ; } $ this -> arrayVar [ $ indexOrName ] = $ value ; return true ; }
Define an item in Array

@since   1.1
@param   int|string $indexOrName Index or name of key
@param   mixed $value Value of item
@param   bool $force Force change of value if key already exist
@return  bool True if success or false if not exist
Define an item in Array