src/EAPPacket.php
public static function mschapv2(\Dapphp\Radius\MsChapV2Packet $chapPacket, $id = null)
    {
        $packet = new self();
        $packet->setId($id);
        $packet->code = self::CODE_RESPONSE;
        $packet->type = self::TYPE_EAP_MS_AUTH;
        $packet->data = $chapPacket->__toString();

        return $packet->__toString();
    }
public static function mschapv2(\Dapphp\Radius\MsChapV2Packet $chapPacket, $id = null)
    {
        $packet = new self();
        $packet->setId($id);
        $packet->code = self::CODE_RESPONSE;
        $packet->type = self::TYPE_EAP_MS_AUTH;
        $packet->data = $chapPacket->__toString();

        return $packet->__toString();
    }
public static function mschapv2 ( \ Dapphp \ Radius \ MsChapV2Packet $ chapPacket , $ id = null ) { $ packet = new self ( ) ; $ packet -> setId ( $ id ) ; $ packet -> code = self :: CODE_RESPONSE ; $ packet -> type = self :: TYPE_EAP_MS_AUTH ; $ packet -> data = $ chapPacket -> __toString ( ) ; return $ packet -> __toString ( ) ; }
Helper function for sending an MSCHAP v2 packet encapsulated in an EAP packet

@param \Dapphp\Radius\MsChapV2Packet $chapPacket The MSCHAP v2 packet to send
@param int $id  The CHAP packet identifier (random if omitted)
@return string An EAP-MSCHAPv2 packet
Helper function for sending an MSCHAP v2 packet encapsulated in an EAP packet