mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-01 20:50:15 +02:00
Added DependencyInjection UML
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 14 KiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 7.1 KiB |
@@ -1,25 +1,24 @@
|
||||
@startuml
|
||||
class User {
|
||||
protected $userId
|
||||
protected $username
|
||||
protected $email
|
||||
+__construct($id = null, $username = null, $email = null)
|
||||
#$userId : int
|
||||
#$username : string
|
||||
#$email : string
|
||||
+__construct($id = null : int, $username = null : string, $email = null : string)
|
||||
+getUserId()
|
||||
+setUserID($userId)
|
||||
+setUserID($userId : int)
|
||||
+getUsername()
|
||||
+setUsername($username)
|
||||
+setUsername($username : string)
|
||||
+getEmail()
|
||||
+setEmail($email)
|
||||
+setEmail($email : string)
|
||||
}
|
||||
|
||||
class UserMapper {
|
||||
# $user : User
|
||||
protected $adapter
|
||||
#$adapter : DBAL
|
||||
+__construct(DBAL $dbLayer)
|
||||
+save(User $user)
|
||||
+findById($id)
|
||||
+findById($id : int)
|
||||
+findAll()
|
||||
+mapObject(array $row)
|
||||
#mapObject(array $row)
|
||||
}
|
||||
|
||||
@enduml
|
Reference in New Issue
Block a user