blob: 224994e4e82e04c118e880f2715b78a8008da4c8 (
plain)
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
|
<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-only
*/
namespace OCP\Command\Events;
use OCP\EventDispatcher\Event;
/**
* Dispatched after an occ command is executed
*
* @since 32.0.0
*/
class CommandExecutedEvent extends Event {
/**
* @since 32.0.0
* @internal instances are created by Nextcloud server
*/
public function __construct(
private string $command,
) {
parent::__construct();
}
/**
* @since 32.0.0
*/
public function getCommand(): string {
return $this->command;
}
}
|