FilenameStringType

Extends \StringType

Class FilenameStringType

Shared string type class. Use the "asString" method for getting the plain value.

category

System

package

Shared

subpackage

FileSystem

Methods

Class Constructor

__construct(string $p_value) 
inherited
Throws
\InvalidArgumentException

Arguments

$p_value

string

Validates file name.

_validateFilename(string $filename) : \FilenameStringType
Throws
\InvalidArgumentException

if $filename contains invalid characters

Arguments

$filename

string

Response

\FilenameStringType

Same instance for chained method calls.

Get the instance value as string.

asString() : string
inherited

Response

string

Properties

Instance Value

value : string
inherited
var

Type(s)

string