1*0b3fd2d3SAndreas Gohr<?php 2*0b3fd2d3SAndreas Gohr/** 3*0b3fd2d3SAndreas Gohr * This file is part of the FreeDSx Socket package. 4*0b3fd2d3SAndreas Gohr * 5*0b3fd2d3SAndreas Gohr * (c) Chad Sikorra <Chad.Sikorra@gmail.com> 6*0b3fd2d3SAndreas Gohr * 7*0b3fd2d3SAndreas Gohr * For the full copyright and license information, please view the LICENSE 8*0b3fd2d3SAndreas Gohr * file that was distributed with this source code. 9*0b3fd2d3SAndreas Gohr */ 10*0b3fd2d3SAndreas Gohr 11*0b3fd2d3SAndreas Gohrnamespace FreeDSx\Socket; 12*0b3fd2d3SAndreas Gohr 13*0b3fd2d3SAndreas Gohruse FreeDSx\Asn1\Type\AbstractType; 14*0b3fd2d3SAndreas Gohr 15*0b3fd2d3SAndreas Gohr/** 16*0b3fd2d3SAndreas Gohr * Represents an ASN.1 PDU that can be retrieved from a message queue. 17*0b3fd2d3SAndreas Gohr * 18*0b3fd2d3SAndreas Gohr * @author Chad Sikorra <Chad.Sikorra@gmail.com> 19*0b3fd2d3SAndreas Gohr */ 20*0b3fd2d3SAndreas Gohrinterface PduInterface 21*0b3fd2d3SAndreas Gohr{ 22*0b3fd2d3SAndreas Gohr /** 23*0b3fd2d3SAndreas Gohr * @return AbstractType 24*0b3fd2d3SAndreas Gohr */ 25*0b3fd2d3SAndreas Gohr public function toAsn1() : AbstractType; 26*0b3fd2d3SAndreas Gohr 27*0b3fd2d3SAndreas Gohr /** 28*0b3fd2d3SAndreas Gohr * @param AbstractType $asn1 29*0b3fd2d3SAndreas Gohr * @return mixed 30*0b3fd2d3SAndreas Gohr */ 31*0b3fd2d3SAndreas Gohr public static function fromAsn1(AbstractType $asn1); 32*0b3fd2d3SAndreas Gohr} 33