123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <?php
- namespace OCP;
- use OCP\AppFramework\Http;
- use OCP\EventDispatcher\Event;
- use Sabre\DAV\Server;
- class SabrePluginEvent extends Event {
-
- protected $statusCode;
-
- protected $message;
-
- protected $server;
-
- public function __construct($server = null) {
- $this->message = '';
- $this->statusCode = Http::STATUS_OK;
- $this->server = $server;
- }
-
- public function setStatusCode($statusCode) {
- $this->statusCode = (int) $statusCode;
- return $this;
- }
-
- public function setMessage($message) {
- $this->message = (string) $message;
- return $this;
- }
-
- public function getStatusCode() {
- return $this->statusCode;
- }
-
- public function getMessage() {
- return $this->message;
- }
-
- public function getServer() {
- return $this->server;
- }
- }
|