src/WireFormat.php
public static function assertWireType($wire, $type)
    {
        $expected = WireFormat::getWireType($type, $wire);

        if ($wire !== $expected) {
            throw new RuntimeException(sprintf(
                "Expected wire type %s but got %s for type %s.",
                $expected,
                $wire,
                $type
            ));
        }
    }
public static function assertWireType($wire, $type)
    {
        $expected = WireFormat::getWireType($type, $wire);

        if ($wire !== $expected) {
            throw new RuntimeException(sprintf(
                "Expected wire type %s but got %s for type %s.",
                $expected,
                $wire,
                $type
            ));
        }
    }
public static function assertWireType ( $ wire , $ type ) { $ expected = WireFormat :: getWireType ( $ type , $ wire ) ; if ( $ wire !== $ expected ) { throw new RuntimeException ( sprintf ( "Expected wire type %s but got %s for type %s." , $ expected , $ wire , $ type ) ) ; } }
Assert the wire type match

@param integer $wire
@param integer $type
Assert the wire type match