public function __construct($type, tubepress_api_options_ReferenceInterface $reference, tubepress_api_translation_TranslatorInterface $translator)
 {
     parent::__construct($reference, $translator);
     if (!in_array($type, self::$_TYPES)) {
         throw new InvalidArgumentException('Invalid type: ' . $type);
     }
     $this->_type = $type;
 }
 public function __construct($pattern, $errorTemplate, tubepress_api_options_ReferenceInterface $reference, tubepress_api_translation_TranslatorInterface $translator)
 {
     parent::__construct($reference, $translator);
     $this->_pattern = (string) $pattern;
     $this->_errorTemplate = (string) $errorTemplate;
 }