* SPDX-License-Identifier: AGPL-3.0-or-later */ namespace KTXF\Resource\Identifier; /** * Collection-level resource identifier (depth 3) * * Format: {provider}:{service}:{collection} */ class CollectionIdentifier extends ServiceIdentifier implements CollectionIdentifierInterface { public function __construct( string $provider, string $service, private readonly string $_collection, ) { parent::__construct($provider, $service); } public function collection(): string { return $this->_collection; } public function depth(): int { return 3; } public function __toString(): string { return parent::__toString() . self::SEPARATOR . $this->_collection; } }