@@ -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; |
@@ -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; |
@@ -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); |
@@ -50,6 +50,7 @@ |
||
50 | 50 | * @param Crypto $crypto |
51 | 51 | * @param PathValidationConfig $config |
52 | 52 | * @param Certificate ...$certificates |
53 | + * @param Certificate[] $certificates |
|
53 | 54 | */ |
54 | 55 | public function __construct(Crypto $crypto, PathValidationConfig $config, |
55 | 56 | Certificate ...$certificates) { |
@@ -197,7 +197,6 @@ |
||
197 | 197 | * |
198 | 198 | * @param Crypto $crypto Crypto engine |
199 | 199 | * @param SignatureAlgorithmIdentifier $algo Algorithm used for signing |
200 | - * @param PrivateKey $private_key Private key used for signing |
|
201 | 200 | * @return CertificationRequest |
202 | 201 | */ |
203 | 202 | public function sign(Crypto $crypto, SignatureAlgorithmIdentifier $algo, |
@@ -28,6 +28,7 @@ |
||
28 | 28 | * Constructor |
29 | 29 | * |
30 | 30 | * @param GeneralName ...$names One or more GeneralName objects |
31 | + * @param GeneralName[] $names |
|
31 | 32 | */ |
32 | 33 | public function __construct(GeneralName ...$names) { |
33 | 34 | $this->_names = $names; |