[Mime] Updated some PHPDoc contents

This commit is contained in:
Javier Eguiluz 2019-07-02 09:24:49 +02:00 committed by Fabien Potencier
parent 64eaf7e3a6
commit 9432f1f970
2 changed files with 6 additions and 7 deletions

View File

@ -23,7 +23,8 @@ final class SMimeEncrypter extends SMime
private $cipher;
/**
* @param string|string[] $certificate Either a lone X.509 certificate, or an array of X.509 certificates
* @param string|string[] $certificate The path (or array of paths) of the file(s) containing the X.509 certificate(s)
* @param int $cipher A set of algorithms used to encrypt the message. Must be one of these PHP constants: https://www.php.net/manual/en/openssl.ciphers.php
*/
public function __construct($certificate, int $cipher = OPENSSL_CIPHER_AES_256_CBC)
{

View File

@ -30,13 +30,11 @@ final class SMimeSigner extends SMime
private $privateKeyPassphrase;
/**
* @see https://secure.php.net/manual/en/openssl.pkcs7.flags.php
*
* @param string $certificate
* @param string $privateKey A file containing the private key (in PEM format)
* @param string $certificate The path of the file containing the signing certificate (in PEM format)
* @param string $privateKey The path of the file containing the private key (in PEM format)
* @param string|null $privateKeyPassphrase A passphrase of the private key (if any)
* @param string $extraCerts A file containing intermediate certificates (in PEM format) needed by the signing certificate
* @param int $signOptions Bitwise operator options for openssl_pkcs7_sign()
* @param string|null $extraCerts The path of the file containing intermediate certificates (in PEM format) needed by the signing certificate
* @param int $signOptions Bitwise operator options for openssl_pkcs7_sign() (@see https://secure.php.net/manual/en/openssl.pkcs7.flags.php)
*/
public function __construct(string $certificate, string $privateKey, ?string $privateKeyPassphrase = null, ?string $extraCerts = null, int $signOptions = PKCS7_DETACHED)
{