lib/3rdParty/composer/spomky-labs/pki-framework/src/X501/ASN1/AttributeValue/OrganizationalUnitNameValue.php
raw symbols SCIP| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace SpomkyLabs\Pki\X501\ASN1\AttributeValue; |
| 6 | |
| 7 | use SpomkyLabs\Pki\X501\ASN1\AttributeType; |
| 8 | use SpomkyLabs\Pki\X501\ASN1\AttributeValue\Feature\DirectoryString; |
| 9 | |
| 10 | /** |
| 11 | * 'organizationalUnitName' attribute value. |
| 12 | * |
| 13 | * @see https://www.itu.int/ITU-T/formal-language/itu-t/x/x520/2012/SelectedAttributeTypes.html#SelectedAttributeTypes.organizationalUnitName |
| 14 | */ |
| 15 | final class OrganizationalUnitNameValue extends DirectoryString |
| 16 | { |
| 17 | public static function create(string $value, int $string_tag = DirectoryString::UTF8): static |
| 18 | { |
| 19 | return new static(AttributeType::OID_ORGANIZATIONAL_UNIT_NAME, $value, $string_tag); |
| 20 | } |
| 21 | } |