* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace FreeDSx\Asn1\Type; /** * Represents an OID ASN1 type. * * @author Chad Sikorra */ class OidType extends AbstractType { protected $tagNumber = self::TAG_TYPE_OID; /** * @param string $value */ public function __construct(string $value) { parent::__construct($value); } /** * @param string $oid * @return $this */ public function setValue(string $oid) { $this->value = $oid; return $this; } /** * @param int|string $tagNumber * @param int $class * @param string $value * @return OidType */ public static function withTag($tagNumber, int $class, string $value) { $type = new self($value); $type->tagNumber = $tagNumber; $type->taggingClass = $class; return $type; } }