Documentation

TraversablePatch
in package
implements ClassPatchInterface

Traversable interface patch.

Forces classes that implement interfaces, that extend Traversable to also implement Iterator.

Tags
author

Konstantin Kudryashov ever.zet@gmail.com

Interfaces, Classes, Traits and Enums

ClassPatchInterface
Class patch interface.

Table of Contents

apply()  : void
Forces class to implement Iterator interface.
getPriority()  : int
Returns patch priority, which determines when patch will be applied.
supports()  : bool
Supports nodetree, that implement Traversable, but not Iterator or IteratorAggregate.

Methods

getPriority()

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

public getPriority() : int
Return values
int

Priority number (higher - earlier)

supports()

Supports nodetree, that implement Traversable, but not Iterator or IteratorAggregate.

public supports(ClassNode $node) : bool
Parameters
$node : ClassNode
Return values
bool

Search results