public function setCompressor(\fpoirotte\Pssht\CompressionInterface $compressor)
    {
        if ($compressor->getMode() !== \fpoirotte\Pssht\CompressionInterface::MODE_COMPRESS) {
            throw new \InvalidArgumentException();
        }

        $this->compressor = $compressor;
        return $this;
    }