@@ -37,6 +37,7 @@ |
||
| 37 | 37 | * Constructor |
| 38 | 38 | * |
| 39 | 39 | * @param IetfAttrValue ...$values |
| 40 | + * @param IetfAttrValue[] $values |
|
| 40 | 41 | */ |
| 41 | 42 | public function __construct(IetfAttrValue ...$values) { |
| 42 | 43 | $this->_policyAuthority = null; |
@@ -27,6 +27,7 @@ |
||
| 27 | 27 | * |
| 28 | 28 | * @param bool $critical |
| 29 | 29 | * @param PolicyInformation ...$policies |
| 30 | + * @param PolicyInformation[] $policies |
|
| 30 | 31 | */ |
| 31 | 32 | public function __construct($critical, PolicyInformation ...$policies) { |
| 32 | 33 | parent::__construct(Extension::OID_CERTIFICATE_POLICIES, $critical); |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | * Generate ASN.1 element. |
| 80 | 80 | * |
| 81 | 81 | * @throws \UnexpectedValueException |
| 82 | - * @return StringType |
|
| 82 | + * @return Element[] |
|
| 83 | 83 | */ |
| 84 | 84 | public function toASN1() { |
| 85 | 85 | switch ($this->_tag) { |
@@ -97,6 +97,9 @@ discard block |
||
| 97 | 97 | } |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | + /** |
|
| 101 | + * @param string $str |
|
| 102 | + */ |
|
| 100 | 103 | protected static function _determineType($str) { |
| 101 | 104 | // @todo Support other types |
| 102 | 105 | return Element::TYPE_UTF8_STRING; |
@@ -34,6 +34,7 @@ |
||
| 34 | 34 | * |
| 35 | 35 | * @param DisplayText $organization |
| 36 | 36 | * @param int ...$numbers |
| 37 | + * @param integer[] $numbers |
|
| 37 | 38 | */ |
| 38 | 39 | public function __construct(DisplayText $organization, ...$numbers) { |
| 39 | 40 | $this->_organization = $organization; |
@@ -41,6 +41,7 @@ |
||
| 41 | 41 | * |
| 42 | 42 | * @param string $oid |
| 43 | 43 | * @param PolicyQualifierInfo ...$qualifiers |
| 44 | + * @param PolicyQualifierInfo[] $qualifiers |
|
| 44 | 45 | */ |
| 45 | 46 | public function __construct($oid, PolicyQualifierInfo ...$qualifiers) { |
| 46 | 47 | $this->_oid = $oid; |
@@ -27,6 +27,7 @@ |
||
| 27 | 27 | * |
| 28 | 28 | * @param bool $critical |
| 29 | 29 | * @param DistributionPoint ...$distribution_points |
| 30 | + * @param DistributionPoint[] $distribution_points |
|
| 30 | 31 | */ |
| 31 | 32 | public function __construct($critical, |
| 32 | 33 | DistributionPoint ...$distribution_points) { |
@@ -57,6 +57,7 @@ discard block |
||
| 57 | 57 | * |
| 58 | 58 | * @param bool $critical |
| 59 | 59 | * @param string ...$purposes |
| 60 | + * @param string[] $purposes |
|
| 60 | 61 | */ |
| 61 | 62 | public function __construct($critical, ...$purposes) { |
| 62 | 63 | parent::__construct(self::OID_EXT_KEY_USAGE, $critical); |
@@ -77,6 +78,7 @@ discard block |
||
| 77 | 78 | * If multiple purposes are checked, all must be present. |
| 78 | 79 | * |
| 79 | 80 | * @param string ...$oids |
| 81 | + * @param string[] $oids |
|
| 80 | 82 | * @return bool |
| 81 | 83 | */ |
| 82 | 84 | public function has(...$oids) { |
@@ -25,6 +25,7 @@ |
||
| 25 | 25 | * Constructor |
| 26 | 26 | * |
| 27 | 27 | * @param GeneralSubtree ...$subtrees |
| 28 | + * @param GeneralSubtree[] $subtrees |
|
| 28 | 29 | */ |
| 29 | 30 | public function __construct(GeneralSubtree ...$subtrees) { |
| 30 | 31 | $this->_subtrees = $subtrees; |
@@ -28,6 +28,7 @@ |
||
| 28 | 28 | * |
| 29 | 29 | * @param string $critical |
| 30 | 30 | * @param PolicyMapping ...$mappings One or more PolicyMapping objects |
| 31 | + * @param PolicyMapping[] $mappings |
|
| 31 | 32 | */ |
| 32 | 33 | public function __construct($critical, PolicyMapping ...$mappings) { |
| 33 | 34 | parent::__construct(self::OID_POLICY_MAPPINGS, $critical); |