File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
src/main/php/com/mongodb/io Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,10 @@ public abstract function compress($data);
99
1010 public abstract function decompress ($ compressed );
1111
12+ public function toString () { return nameof ($ this ).'# ' .$ this ->id ; }
13+
1214 public function hashCode () { return 'C ' .$ this ->id ; }
1315
1416 public function compareTo ($ value ) { return $ value instanceof self ? $ this ->id <=> $ value ->id : 1 ; }
17+
1518}
Original file line number Diff line number Diff line change 22
33class Zstd extends Compressor {
44 public $ id = 3 ;
5- public $ level ;
6-
7- /** @param int $level */
8- public function __construct ($ level = -1 ) {
9- $ this ->level = $ level ;
10- }
115
126 public function compress ($ data ) {
13- return zstd_compress ($ data, $ this -> level );
7+ return zstd_compress ($ data );
148 }
159
1610 public function decompress ($ compressed ) {
You can’t perform that action at this time.
0 commit comments