8889841cPK6[ G G Rules/AllowedTypes.phpnu[allowedMimeTypes = $mimeTypes; } /** * @inheritDoc * * @since 2.24.0 */ public function __invoke($value, Closure $fail, string $key, array $values) { throw new RuntimeException('Do not use this validation rule yet. See class docblock for more information.'); } /** * Overrides the allowed MIME types. * * @since 2.24.0 * * @param string[] $allowedMimeTypes */ public function setAllowedtypes(array $allowedMimeTypes): self { $this->allowedMimeTypes = $allowedMimeTypes; return $this; } /** * Returns the allowed MIME types. * * @since 2.24.0 * * @return string[] */ public function getAllowedTypes(): array { return $this->allowedMimeTypes; } /** * A simple validator for MIME types. This is not a full MIME type validator, but it is sufficient for our purposes. * * @since 2.24.0 * * @return void */ private static function validateMimeType(string $type) { if (count(explode('/', $type)) !== 2) { throw new InvalidArgumentException('MIME type must be in the format of \'type/subtype\''); } } } PK6[nY00"ValidationRulesServiceProvider.phpnu[register( AllowedTypes::class ); } } PK6[ G G Rules/AllowedTypes.phpnu[PK6[nY00" ValidationRulesServiceProvider.phpnu[PK