SvgTypeCheck

Table of Contents

Constants

MIME_TYPES  = ['image/svg', 'image/svg+xml', 'application/svg', 'application/svg+xml']

Properties

$fileExtensions  : array<string|int, string>
$mimeTypeDetector  : MimeTypeDetector

Methods

__construct()  : mixed
forFilePath()  : bool
forResource()  : bool
resolveFileExtensions()  : array<string|int, string>

Constants

MIME_TYPES

protected mixed MIME_TYPES = ['image/svg', 'image/svg+xml', 'application/svg', 'application/svg+xml']

Properties

$fileExtensions

protected array<string|int, string> $fileExtensions

Methods

forFilePath()

public forFilePath(string $filePath) : bool
Parameters
$filePath : string
Return values
bool

resolveFileExtensions()

protected resolveFileExtensions() : array<string|int, string>
Return values
array<string|int, string>

        
On this page

Search results