123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
- declare(strict_types=1);
- namespace OCP\Config;
- use OCP\EventDispatcher\Event;
- class BeforePreferenceDeletedEvent extends Event {
- protected string $userId;
- protected string $appId;
- protected string $configKey;
- protected bool $valid = false;
-
- public function __construct(string $userId, string $appId, string $configKey) {
- parent::__construct();
- $this->userId = $userId;
- $this->appId = $appId;
- $this->configKey = $configKey;
- }
-
- public function getUserId(): string {
- return $this->userId;
- }
-
- public function getAppId(): string {
- return $this->appId;
- }
-
- public function getConfigKey(): string {
- return $this->configKey;
- }
-
- public function isValid(): bool {
- return $this->valid;
- }
-
- public function setValid(bool $valid): void {
- $this->valid = $valid;
- }
- }
|