mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-06 06:57:25 +02:00
Updated uml diagrams for structural patterns
This commit is contained in:
23
Structural/DataMapper/uml/DataMapper.uml
Normal file
23
Structural/DataMapper/uml/DataMapper.uml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Diagram>
|
||||
<ID>PHP</ID>
|
||||
<OriginalElement>\DesignPatterns\Structural\DataMapper\User</OriginalElement>
|
||||
<nodes>
|
||||
<node x="0.0" y="0.0">\DesignPatterns\Structural\DataMapper\User</node>
|
||||
<node x="0.0" y="274.0">\DesignPatterns\Structural\DataMapper\UserMapper</node>
|
||||
</nodes>
|
||||
<notes />
|
||||
<edges />
|
||||
<settings layout="Hierarchic Group" zoom="0.871331828442438" x="141.5" y="211.5" />
|
||||
<SelectedNodes>
|
||||
<node>\DesignPatterns\Structural\DataMapper\User</node>
|
||||
</SelectedNodes>
|
||||
<Categories>
|
||||
<Category>Fields</Category>
|
||||
<Category>Constants</Category>
|
||||
<Category>Constructors</Category>
|
||||
<Category>Methods</Category>
|
||||
</Categories>
|
||||
<VISIBILITY>private</VISIBILITY>
|
||||
</Diagram>
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 10 KiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 58 KiB |
@@ -1,24 +0,0 @@
|
||||
@startuml
|
||||
class User {
|
||||
#$userId : int
|
||||
#$username : string
|
||||
#$email : string
|
||||
+__construct($id = null : int, $username = null : string, $email = null : string)
|
||||
+getUserId()
|
||||
+setUserID($userId : int)
|
||||
+getUsername()
|
||||
+setUsername($username : string)
|
||||
+getEmail()
|
||||
+setEmail($email : string)
|
||||
}
|
||||
|
||||
class UserMapper {
|
||||
#$adapter : DBAL
|
||||
+__construct(DBAL $dbLayer)
|
||||
+save(User $user)
|
||||
+findById($id : int)
|
||||
+findAll()
|
||||
#mapObject(array $row)
|
||||
}
|
||||
|
||||
@enduml
|
Reference in New Issue
Block a user