Esempio n. 1
0
File: UTCTime.php Progetto: sop/asn1
 /**
  * Constructor
  *
  * @param \DateTimeImmutable $dt
  */
 public function __construct(\DateTimeImmutable $dt)
 {
     $this->_typeTag = self::TYPE_UTC_TIME;
     parent::__construct($dt);
 }
Esempio n. 2
0
File: Time.php Progetto: sop/x509
 /**
  * Initialize from ASN.1.
  *
  * @param TimeType $el
  * @return self
  */
 public static function fromASN1(TimeType $el)
 {
     $obj = new self($el->dateTime());
     $obj->_type = $el->tag();
     return $obj;
 }