PreFileEvent

in package
extends EventAbstract

Event thrown before the parsing of an individual file.

Properties

protected$subject  : object                

protected$file  : string                

Methods

Initializes this event with the given subject.

public__construct(object $subject) : mixed

Parameters

$subject : object

Returns

mixed

Returns the object that is the subject of this event.

publicgetSubject() : object

Returns

object

Creates a new instance of a derived object and return that.

publicstaticcreateInstance(object $subject) : self

Used as convenience method for fluent interfaces.

Parameters

$subject : object

Returns

self

Sets the name of the file that is about to be processed.

publicsetFile(string $file) : self

Parameters

$file : string

Returns

self

Returns the name of the file that is about to be processed.

publicgetFile() : string

Returns

string