protected function assertPacketFlags($value, $fromPacket = true)
    {
        if ($this->packetFlags !== $value) {
            $this->throwException(
                sprintf(
                    'Expected flags %02x but got %02x.',
                    $value,
                    $this->packetFlags
                ),
                $fromPacket
            );
        }
    }
protected function assertPacketFlags($value, $fromPacket = true)
    {
        if ($this->packetFlags !== $value) {
            $this->throwException(
                sprintf(
                    'Expected flags %02x but got %02x.',
                    $value,
                    $this->packetFlags
                ),
                $fromPacket
            );
        }
    }
protected function assertPacketFlags ( $ value , $ fromPacket = true ) { if ( $ this -> packetFlags !== $ value ) { $ this -> throwException ( sprintf ( 'Expected flags %02x but got %02x.' , $ value , $ this -> packetFlags ) , $ fromPacket ) ; } }
Asserts that the packet flags have a specific value.

@param int  $value
@param bool $fromPacket

@throws MalformedPacketException
@throws \InvalidArgumentException
Asserts that the packet flags have a specific value .