Copied!

ValueObjectVisitorDispatcher

ValueObjectVisitorDispatcher.php : 14

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

Methods

publicaddVisitor()

ValueObjectVisitorDispatcher.php : 45
public addVisitor(string $visitedClassName, ValueObjectVisitor $visitor) : mixed

Parameters

Name Type Default value Description
$visitedClassName string -

The FQN of the visited class

$visitor ValueObjectVisitor -

The visitor object

publicsetOutputGenerator()

ValueObjectVisitorDispatcher.php : 36
public setOutputGenerator(Generator $outputGenerator) : mixed

Parameters

Name Type Default value Description
$outputGenerator Generator - -

publicsetOutputVisitor()

ValueObjectVisitorDispatcher.php : 31
public setOutputVisitor(Visitor $outputVisitor) : mixed

Parameters

Name Type Default value Description
$outputVisitor Visitor - -

publicvisit()

ValueObjectVisitorDispatcher.php : 58
public visit(object $data) : mixed

Parameters

Name Type Default value Description
$data object -

The visited object

Tags
Throws
NoVisitorFoundException
Throws
InvalidTypeException