Close search

Hack book de Hoa\Visitor

Unfortunately, the documentation of this library has not been written yet. However, the file may contain enough information to help you. This document is an extract of the file.
Sorry for this inconvenience. Be ensured we are working hard to fix this.

Help on IRC Help on Gitter Documentation Board

This library provides interfaces to apply the visitor pattern.

Learn more.

Quick usage

We propose to explain the basis of this library. We have two entities: an element to visit and a visitor, for example a node of a tree and a dumper. The element to visit will implement the Hoa\Visitor\Element interface and the visitor will implement the Hoa\Visitor\Visit interface. The first one will ask to implement the accept method in order to define what data it holds will be visited. The second one will ask to implement the visit method which will contain the visitor computations. We will find several examples in Hoa libraries.

Une erreur ou une suggestion sur la documentation ? Les contributions sont ouvertes !