You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Application-Web/Documentation/http.puml

47 lines
1.2 KiB

@startuml
class HttpRequest implements ArrayAccess {
- data: array
+ __construct(data: array)
+ offsetExists(offset: mixed): bool
+ offsetGet(offset: mixed): mixed
+ offsetSet(offset: mixed, value: mixed)
+ offsetUnset(offset: mixed)
+ <u>from(request: array, fails: &array, schema: array): HttpRequest
+ <u>fromPayload(fails: &array, schema: array): HttpRequest
}
class HttpResponse {
- code: int
+ __construct(code: int)
+ getCode(): int
<u>fromCode(code: int): HttpResponse
}
class JsonHttpResponse extends HttpResponse {
- payload: mixed
+ __construct(payload: mixed, code: int = HttpCodes::OK)
+ getJson(): string
}
class ViewHttpResponse extends HttpResponse {
+ <u>TWIG_VIEW: int {frozen}
+ <u>REACT_VIEW: int {frozen}
- file: string
- arguments: array
- kind: int
- __construct(kind: int, file: string, arguments: array, code: int = HttpCodes::OK)
+ getViewKind(): int
+ getFile(): string
+ getArguments(): array
+ <u>twig(file: string, arguments: array, code: int = HttpCodes::OK): ViewHttpResponse
+ <u>react(file: string, arguments: array, code: int = HttpCodes::OK): ViewHttpResponse
}
@enduml