phpDocumentor

FilenameStringType extends StringType
in package

Class FilenameStringType

Tags
category

System

subpackage

FileSystem

Table of Contents

$value  : string
Instance Value
__construct()  : mixed
FilenameStringType constructor.
asString()  : string
Get the instance value as string.
_validateFilename()  : FilenameStringType
Validates file name.
validateFilenameIsNotAPath()  : void

Properties

Methods

__construct()

FilenameStringType constructor.

public __construct(string $filename) : mixed
Parameters
$filename : string
Tags
throws
InvalidArgumentException

if $filename contains invalid characters

Return values
mixed

asString()

Get the instance value as string.

public asString() : string
Return values
string

_validateFilename()

Validates file name.

protected _validateFilename(string $filename) : FilenameStringType
Parameters
$filename : string
Tags
throws
InvalidArgumentException

if $filename contains invalid characters

Return values
FilenameStringType

Same instance for chained method calls.

validateFilenameIsNotAPath()

protected validateFilenameIsNotAPath(string $filename) : void
Parameters
$filename : string
Return values
void

Search results