public function addColumn($name, $value)
    {
        if (isset($this[$name])) {
            throw new Exception("Column $name already in the array!");
        }
        $this->setColumn($name, $value);
    }
public function addColumn($name, $value)
    {
        if (isset($this[$name])) {
            throw new Exception("Column $name already in the array!");
        }
        $this->setColumn($name, $value);
    }
public function addColumn ( $ name , $ value ) { if ( isset ( $ this [ $ name ] ) ) { throw new Exception ( "Column $name already in the array!" ) ; } $ this -> setColumn ( $ name , $ value ) ; }
Add a new column to the row. If the column already exists, throws an exception.

@param string $name name of the column to add.
@param mixed $value value of the column to set or a PHP callable.
@throws Exception if the column already exists.
Add a new column to the row . If the column already exists throws an exception .