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

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

        $this->compressor = $compressor;
        return $this;
    }
public function setCompressor ( \ fpoirotte \ Pssht \ CompressionInterface $ compressor ) { if ( $ compressor -> getMode ( ) !== \ fpoirotte \ Pssht \ CompressionInterface :: MODE_COMPRESS ) { throw new \ InvalidArgumentException ( ) ; } $ this -> compressor = $ compressor ; return $ this ; }
Set the object used to compress outgoing packets.

\param fpoirotte::Pssht::CompressionInterface $compressor
Outgoing packets' compressor.

\retval Transport
Return this transport layer.
Set the object used to compress outgoing packets .