icingadb-web/library/Icingadb/Model/Vars.php
Eric Lippmann 272e791390 License source files as GPL-3.0-or-later
Add SPDX license headers and mark source files as GPL-3.0-or-later to
preserve the option to relicense under later GPL versions.
2026-03-11 14:03:05 +01:00

29 lines
812 B
PHP

<?php
// SPDX-FileCopyrightText: 2022 Icinga GmbH <https://icinga.com>
// SPDX-License-Identifier: GPL-3.0-or-later
namespace Icinga\Module\Icingadb\Model;
use Icinga\Module\Icingadb\Model\Behavior\FlattenedObjectVars;
use ipl\Orm\Behaviors;
use ipl\Sql\Connection;
class Vars extends CustomvarFlat
{
/**
* @internal Don't use. This model acts only as relation target and is not supposed to be directly used as query
* target. Use {@see CustomvarFlat} instead.
*/
public static function on(Connection $_)
{
throw new \LogicException('Documentation says: DO NOT USE. Can\'t you read?');
}
public function createBehaviors(Behaviors $behaviors)
{
parent::createBehaviors($behaviors);
$behaviors->add(new FlattenedObjectVars());
}
}