Protocol\FCGI\Record\UnknownType::getUnrecognizedType PHP Method

getUnrecognizedType() public method

Returns the unrecognized type
public getUnrecognizedType ( ) : integer
return integer
    public function getUnrecognizedType()
    {
        return $this->type1;
    }

Usage Example

 public function testPacking()
 {
     $request = new UnknownType(42, 'WTF!');
     $this->assertEquals(FCGI::UNKNOWN_TYPE, $request->getType());
     $this->assertEquals(42, $request->getUnrecognizedType());
     $this->assertSame(self::$rawMessage, bin2hex($request));
 }