public function offsetSet($key, $value)
    {
        if(!($value instanceof PieceInterface)) {
            $value = new Piece($value);
        }
        parent::offsetSet($key, $value);
    }
public function offsetSet($key, $value)
    {
        if(!($value instanceof PieceInterface)) {
            $value = new Piece($value);
        }
        parent::offsetSet($key, $value);
    }
public function offsetSet ( $ key , $ value ) { if ( ! ( $ value instanceof PieceInterface ) ) { $ value = new Piece ( $ value ) ; } parent :: offsetSet ( $ key , $ value ) ; }
Set the piece at a given offset.

@param  mixed  $key
@param  mixed  $value
@return void
Set the piece at a given offset .