You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nextcloud-server/lib/private/DB/Schema/ForeignKeyConstraint.php

30 lines
644 B

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH
* SPDX-FileContributor: Carl Schwan
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OC\DB\Schema;
use Doctrine\DBAL\Schema\ForeignKeyConstraint as DBALForeignKeyConstraint;
use OCP\DB\Schema\IForeignKeyConstraint;
use Override;
class ForeignKeyConstraint implements IForeignKeyConstraint {
public function __construct(
private readonly DBALForeignKeyConstraint $keyConstraint,
) {
}
#[Override]
public function getName(): string {
/** @var non-empty-string $value */
$value = $this->keyConstraint->getName();
return $value;
}
}