-
Notifications
You must be signed in to change notification settings - Fork 0
/
.puml
39 lines (31 loc) · 874 Bytes
/
.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@startuml
skinparam linetype ortho
interface ValidatorInterface
ValidatorInterface : validate($value)
abstract class CompositeValidator {
-ValidatorInterface $children = []
+void addMany(array $children)
+void add(ValidatorInterface $child)
#void validateChildren($value)
}
ValidatorInterface <|.. CompositeValidator
CompositeValidator *--> ValidatorInterface
abstract class KeyValueValidator {
+__construct(string $key, array $rules = [])
#bool hasKey($value)
#mixed getKey($value)
}
CompositeValidator <|-- KeyValueValidator
class IntegerRule
ValidatorInterface <|.. IntegerRule
class LowerRule
ValidatorInterface <|.. LowerRule
class ArrayRule
CompositeValidator <|-- ArrayRule
class ObjectRule
CompositeValidator <|-- ObjectRule
class RequiredRule
KeyValueValidator <|-- RequiredRule
class SometimesRule
KeyValueValidator <|-- SometimesRule
@enduml