ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
BasicHandlerResult.php
Go to the documentation of this file.
1<?php
2
20
22
28final class BasicHandlerResult implements HandlerResult
29{
33 public function __construct(private string $file_identification_key, private int $status, private string $file_identifier, private string $message)
34 {
35 }
36
37
41 public function getStatus(): int
42 {
43 return $this->status;
44 }
45
46
50 public function getFileIdentifier(): string
51 {
52 return $this->file_identifier;
53 }
54
55
59 final public function jsonSerialize(): array
60 {
61 $str = $this->file_identification_key ?? UploadHandler::DEFAULT_FILE_ID_PARAMETER;
62
63 return [
64 'status' => $this->status,
65 'message' => $this->message,
66 $str => $this->file_identifier,
67 ];
68 }
69
70
74 public function getMessage(): string
75 {
76 return $this->message;
77 }
78}
__construct(private string $file_identification_key, private int $status, private string $file_identifier, private string $message)
BasicHandlerResult constructor.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$message
Definition: xapiexit.php:31