src/SymbolTable.php
public function offsetSet($key, $value) {
        if(!$this->offsetExists($key)) {
            $this->table[$key] = new Value($value);
        } else {
            $this->table[$key]->setValue($value);
        }
    }
public function offsetSet($key, $value) {
        if(!$this->offsetExists($key)) {
            $this->table[$key] = new Value($value);
        } else {
            $this->table[$key]->setValue($value);
        }
    }
public function offsetSet ( $ key , $ value ) { if ( ! $ this -> offsetExists ( $ key ) ) { $ this -> table [ $ key ] = new Value ( $ value ) ; } else { $ this -> table [ $ key ] -> setValue ( $ value ) ; } }
Set the value for a symbol.
@param string $key Symbol name.
@param Value $value Symbol value.
Set the value for a symbol .