SplFileInfoPatch
in package
implements
ClassPatchInterface
SplFileInfo patch.
Makes SplFileInfo and derivative classes usable with Prophecy.
Tags
Interfaces, Classes, Traits and Enums
- ClassPatchInterface
- Class patch interface.
Table of Contents
- apply() : void
- Updated constructor code to call parent one with dummy file argument.
- getPriority() : int
- Returns patch priority, which determines when patch will be applied.
- supports() : bool
- Supports everything that extends SplFileInfo.
- nodeIsDirectoryIterator() : bool
- nodeIsSplFileObject() : bool
- nodeIsSymfonySplFileInfo() : bool
Methods
apply()
Updated constructor code to call parent one with dummy file argument.
public
apply(ClassNode $node) : void
Parameters
- $node : ClassNode
Return values
void —getPriority()
Returns patch priority, which determines when patch will be applied.
public
getPriority() : int
Return values
int —Priority number (higher - earlier)
supports()
Supports everything that extends SplFileInfo.
public
supports(ClassNode $node) : bool
Parameters
- $node : ClassNode
Return values
bool —nodeIsDirectoryIterator()
private
nodeIsDirectoryIterator(ClassNode $node) : bool
Parameters
- $node : ClassNode
Return values
bool —nodeIsSplFileObject()
private
nodeIsSplFileObject(ClassNode $node) : bool
Parameters
- $node : ClassNode
Return values
bool —nodeIsSymfonySplFileInfo()
private
nodeIsSymfonySplFileInfo(ClassNode $node) : bool
Parameters
- $node : ClassNode