\phpDocumentor\Parser\EventPreFileEvent

Event thrown before the parsing of an individual file.

Summary

Methods
Properties
Constants
__construct()
getSubject()
createInstance()
setFile()
getFile()
No public properties found
No constants found
No protected methods found
$subject
$file
N/A
No private methods found
No private properties found
N/A

Properties

$subject

$subject : object

Type

object — Represents an object that is the subject of this event

$file

$file : string

Type

string

Methods

__construct()

__construct(object  $subject) 

Initializes this event with the given subject.

Parameters

object $subject

getSubject()

getSubject() : object

Returns the object that is the subject of this event.

Returns

object

createInstance()

createInstance(object  $subject) : static

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

Used as convenience method for fluent interfaces.

Parameters

object $subject

Returns

static

setFile()

setFile(string  $file) : self|\phpDocumentor\Parser\Event\PreFileEvent

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

Parameters

string $file

Returns

self|\phpDocumentor\Parser\Event\PreFileEvent

getFile()

getFile() : string

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

Returns

string