src/Valuestore.php
public function put($name, $value = null)
    {
        if ($name == []) {
            return $this;
        }

        $newValues = $name;

        if (! is_array($name)) {
            $newValues = [$name => $value];
        }

        $newContent = array_merge($this->all(), $newValues);

        $this->setContent($newContent);

        return $this;
    }
public function put($name, $value = null)
    {
        if ($name == []) {
            return $this;
        }

        $newValues = $name;

        if (! is_array($name)) {
            $newValues = [$name => $value];
        }

        $newContent = array_merge($this->all(), $newValues);

        $this->setContent($newContent);

        return $this;
    }
public function put ( $ name , $ value = null ) { if ( $ name == [ ] ) { return $ this ; } $ newValues = $ name ; if ( ! is_array ( $ name ) ) { $ newValues = [ $ name => $ value ] ; } $ newContent = array_merge ( $ this -> all ( ) , $ newValues ) ; $ this -> setContent ( $ newContent ) ; return $ this ; }
Put a value in the store.

@param string|array    $name
@param string|int|null $value

@return $this
Put a value in the store .