src/Component/Json.php
/**
     * Replaces data with a new one.
     *
     * @param mixed $newData
     * @return mixed The previous data.
     */
Replaces data with a new one.
@param mixed $newData
@return mixed The previous data.
Replaces data with a new one . @param mixed $newData @return mixed The previous data .
public function exchange($newData)
    {
        $prevData = $this->get();
        $this->__construct($newData, $this->options);
        return $prevData;
    }
public function exchange ( $ newData ) { $ prevData = $ this -> get ( ) ; $ this -> __construct ( $ newData , $ this -> options ) ; return $ prevData ; }
Replaces data with a new one.
Replaces data with a new one .