Files
nextcloud-server-mirror/lib/public/Files/ObjectStore/Events/BucketCreatedEvent.php
2025-11-26 08:18:09 +08:00

45 lines
866 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-only
*/
namespace OCP\Files\ObjectStore\Events;
use OCP\AppFramework\Attribute\Consumable;
use OCP\EventDispatcher\Event;
/**
* @since 29.0.16
*/
#[Consumable(since: '29.0.16')]
class BucketCreatedEvent extends Event {
public function __construct(
private readonly string $bucket,
private readonly string $endpoint,
private readonly string $region,
private readonly string $version = 'latest',
) {
parent::__construct();
}
public function getBucket(): string {
return $this->bucket;
}
public function getEndpoint(): string {
return $this->endpoint;
}
public function getRegion(): string {
return $this->region;
}
public function getVersion(): string {
return $this->version;
}
}