TraversablePatch
in package
implements
ClassPatchInterface
Traversable interface patch.
Forces classes that implement interfaces, that extend Traversable to also implement Iterator.
Tags
Interfaces, Classes and Traits
- 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
apply()
Forces class to implement Iterator interface.
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 nodetree, that implement Traversable, but not Iterator or IteratorAggregate.
public
supports(ClassNode $node) : bool
Parameters
- $node : ClassNode