mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-11 09:24:01 +02:00
Added More pattern UMLs
This commit is contained in:
@@ -6,3 +6,7 @@ The Visitor Pattern lets you outsource operations on objects to other objects. T
|
||||
But classes have to define a contract to allow visitors (the `Role::accept` method in the example).
|
||||
|
||||
The contract is an abstract class but you can have also a clean interface. In that case, each Visitor has to choose itself which method to invoke on the visitor.
|
||||
|
||||
## UML Diagram
|
||||
|
||||

|
Reference in New Issue
Block a user