45 lines
864 B
PHP
45 lines
864 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 33.0.0
|
|
*/
|
|
#[Consumable(since: '33.0.0')]
|
|
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;
|
|
}
|
|
}
|