Menu

## SplFileInfoPatch
in package
implements ClassPatchInterface

SplFileInfoPatch.php : 23

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()

SplFileInfoPatch.php : 47

Updated constructor code to call parent one with dummy file argument.

`public apply(ClassNode $node) : void`

##### Parameters

$node : ClassNode

##### Return values

void —

#### getPriority()

SplFileInfoPatch.php : 84

Returns patch priority, which determines when patch will be applied.

`public getPriority() : int`

##### Return values

int —

Priority number (higher - earlier)

#### supports()

SplFileInfoPatch.php : 32

Supports everything that extends SplFileInfo.

`public supports(ClassNode $node) : bool`

##### Parameters

$node : ClassNode

##### Return values

bool —

#### nodeIsDirectoryIterator()

SplFileInfoPatch.php : 93
`private nodeIsDirectoryIterator(ClassNode $node) : bool`

##### Parameters

$node : ClassNode

##### Return values

bool —

#### nodeIsSplFileObject()

SplFileInfoPatch.php : 105
`private nodeIsSplFileObject(ClassNode $node) : bool`

##### Parameters

$node : ClassNode

##### Return values

bool —

#### nodeIsSymfonySplFileInfo()

SplFileInfoPatch.php : 117
`private nodeIsSymfonySplFileInfo(ClassNode $node) : bool`

##### Parameters

$node : ClassNode

##### Return values

bool —

## Search results