Documentation

SplFileInfoPatch
in package
implements ClassPatchInterface

SplFileInfo patch.

Makes SplFileInfo and derivative classes usable with Prophecy.

Tags
author

Konstantin Kudryashov ever.zet@gmail.com

Interfaces, Classes and Traits

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)

Search results