Namshi\JOSE\SimpleJWS::__construct PHP Метод

__construct() публичный Метод

Constructor.
См. также: http://php.net/manual/en/function.json-encode.php
См. также: http://php.net/manual/en/jsonserializable.jsonserialize.php
См. также: https://tools.ietf.org/html/draft-ietf-jose-json-web-signature-41#section-4 }
public __construct ( array $header = [], $encryptionEngine = 'OpenSSL' )
$header array An associative array of headers. The value can be any type accepted by json_encode or a JSON serializable object
    public function __construct($header = array(), $encryptionEngine = 'OpenSSL')
    {
        if (!isset($header['typ'])) {
            $header['typ'] = 'JWS';
        }
        parent::__construct($header, $encryptionEngine);
    }