Exemple #1
0
 /**
  * Initialize from ASN.1.
  *
  * @param StringType $el
  * @return self
  */
 public static function fromASN1(StringType $el)
 {
     return new self($el->string(), $el->tag());
 }
Exemple #2
0
 /**
  * Constructor
  *
  * @param string $string Content octets
  * @param int $unused_bits Number of unused bits in the last octet
  */
 public function __construct($string, $unused_bits = 0)
 {
     $this->_typeTag = self::TYPE_BIT_STRING;
     parent::__construct($string);
     $this->_unusedBits = $unused_bits;
 }