<?php

namespace JWX\JWT\Parameter;


/**
 * Implements 'Content Type' parameter.
 *
 * @link https://tools.ietf.org/html/rfc7515#section-4.1.10
 */
class ContentTypeParameter extends RegisteredJWTParameter
{
	/**
	 * Constructor
	 *
	 * @param string $type
	 */
	public function __construct($type) {
		parent::__construct(self::PARAM_CONTENT_TYPE, (string) $type);
	}
}

<?php

namespace JWX\JWT\Parameter;


/**
 * Implements 'Content Type' parameter.
 *
 * @link https://tools.ietf.org/html/rfc7515#section-4.1.10
 */
class ContentTypeParameter extends RegisteredJWTParameter
{
	/**
	 * Content type for the nested JWT.
	 *
	 * @var string
	 */
	const TYPE_JWT = "JWT";
	
	/**
	 * Constructor
	 *
	 * @param string $type
	 */
	public function __construct($type) {
		parent::__construct(self::PARAM_CONTENT_TYPE, (string) $type);
	}
}

Add JWT content type constant
Add JWT content type constant