eZPublishCommunityProject  2013.9
eZ\Publish\Core\REST\Common\Output\ValueObjectVisitorDispatcher Class Reference

Dispatches value objects to a visitor depending on the class name. More...

Public Member Functions

 addVisitor ($visitedClassName, ValueObjectVisitor $visitor)
 
 setOutputGenerator (Generator $outputGenerator)
 
 setOutputVisitor (Visitor $outputVisitor)
 
 visit ($data)
 

Private Attributes

 $outputGenerator
 
 $outputVisitor
 
 $visitors
 

Detailed Description

Dispatches value objects to a visitor depending on the class name.

Member Function Documentation

eZ\Publish\Core\REST\Common\Output\ValueObjectVisitorDispatcher::addVisitor (   $visitedClassName,
ValueObjectVisitor  $visitor 
)
Parameters
string$visitedClassNameThe FQN of the visited class
\eZ\Publish\Core\REST\Common\Output\ValueObjectVisitor$visitorThe visitor object
eZ\Publish\Core\REST\Common\Output\ValueObjectVisitorDispatcher::setOutputGenerator ( Generator  $outputGenerator)
eZ\Publish\Core\REST\Common\Output\ValueObjectVisitorDispatcher::setOutputVisitor ( Visitor  $outputVisitor)
eZ\Publish\Core\REST\Common\Output\ValueObjectVisitorDispatcher::visit (   $data)
Parameters
object$dataThe visited object
Exceptions
\eZ\Publish\Core\REST\Common\Output\Exceptions\NoVisitorFoundException
\eZ\Publish\Core\REST\Common\Output\Exceptions\InvalidTypeException
Returns
mixed

Member Data Documentation

eZ\Publish\Core\REST\Common\Output\ValueObjectVisitorDispatcher::$outputGenerator
private
eZ\Publish\Core\REST\Common\Output\ValueObjectVisitorDispatcher::$outputVisitor
private
eZ\Publish\Core\REST\Common\Output\ValueObjectVisitorDispatcher::$visitors
private

The documentation for this class was generated from the following file: