PHP Class DotsUnited\BundleFu\FileList

Author: Jan Sorgalla ([email protected])
Inheritance: implements Iterator, implements Countable
Datei anzeigen Open project: dotsunited/bundlefu

Protected Properties

Property Type Description
$files array
$maxMTime integer

Public Methods

Method Description
addFile ( string $file, SplFileInfo $fileInfo ) : FileList Add a file to the list.
count ( ) : integer Implements Countable::count()
current ( ) : SplFileInfo Implements Iterator::current()
getHash ( ) : string Get a hash of this file list.
getMaxMTime ( ) : integer Get the maximum modification of all files in this list.
key ( ) : string Implements Iterator::key()
next ( ) : void Implements Iterator::next()
reset ( ) : FileList Reset the file list.
rewind ( ) : void Implements Iterator::rewind()
valid ( ) : boolean Implements Iterator::valid()

Method Details

addFile() public method

Add a file to the list.
public addFile ( string $file, SplFileInfo $fileInfo ) : FileList
$file string The file
$fileInfo SplFileInfo
return FileList

count() public method

Implements Countable::count()
public count ( ) : integer
return integer

current() public method

Implements Iterator::current()
public current ( ) : SplFileInfo
return SplFileInfo

getHash() public method

Get a hash of this file list.
public getHash ( ) : string
return string

getMaxMTime() public method

Get the maximum modification of all files in this list.
public getMaxMTime ( ) : integer
return integer

key() public method

Implements Iterator::key()
public key ( ) : string
return string

next() public method

Implements Iterator::next()
public next ( ) : void
return void

reset() public method

Reset the file list.
public reset ( ) : FileList
return FileList

rewind() public method

Implements Iterator::rewind()
public rewind ( ) : void
return void

valid() public method

Implements Iterator::valid()
public valid ( ) : boolean
return boolean False if there's nothing more to iterate over

Property Details

$files protected_oe property

protected array $files
return array

$maxMTime protected_oe property

protected int $maxMTime
return integer