예제 #1
0
 /**
  * Create a new Query Parameter
  *
  * @param string $mediaType
  *
  * @throws \Exception
  */
 public function __construct($mediaType)
 {
     if (!in_array($mediaType, self::$validMediaTypes)) {
         throw new \Exception('Invalid type');
     }
     parent::__construct($mediaType);
 }