public function replaceCurrent($value)
	{
		$key = $this->getLastKey();
		if($key >= 0)
		{
			$this->getStateArray()->offsetSet($key,$value);
		}
		else
		{
			throw new NoDataException;
		}
	}
public function replaceCurrent($value)
	{
		$key = $this->getLastKey();
		if($key >= 0)
		{
			$this->getStateArray()->offsetSet($key,$value);
		}
		else
		{
			throw new NoDataException;
		}
	}
public function replaceCurrent ( $ value ) { $ key = $ this -> getLastKey ( ) ; if ( $ key >= 0 ) { $ this -> getStateArray ( ) -> offsetSet ( $ key , $ value ) ; } else { throw new NoDataException ; } }
Replace the current state
Replace the current state