InvalidExtensionException

 class Winter\Storm\Halcyon\Exception\InvalidExtensionException
extends RuntimeException

Properties

protected $allowedExtensions : array

A list of allowable extensions.

protected $invalidExtension : string

Name of the affected file extension.

Methods

public getAllowedExtensions () : array

Get the list of allowed extensions.

Returns
array

public getInvalidExtension () : string

Get the affected file extension.

Returns
string

public setAllowedExtensions (array $allowedExtensions) : $this

Set the list of allowed extensions.

Parameters
Property Description
$allowedExtensions
array
Returns
$this

public setInvalidExtension (string $invalidExtension) : $this

Set the affected file extension.

Parameters
Property Description
$invalidExtension
string
Returns
$this
Copyright © 2024 Winter CMS