OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
32
app/Core/Resources/Models/Dependency.php
Normal file
32
app/Core/Resources/Models/Dependency.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Leantime\Core\Resources\Models;
|
||||
|
||||
/**
|
||||
* A dependency — an external commitment a program needs to succeed
|
||||
* (partnership, facility, grant, supplier, regulatory approval — things
|
||||
* outside your direct control).
|
||||
*
|
||||
* `confirmed` distinguishes "we have this locked in" from "we're still
|
||||
* counting on this happening" — the primary board-level risk signal.
|
||||
*
|
||||
* The four nullable trailing fields are optional context that surface in
|
||||
* the stakeholder report's Dependencies section when populated. Older
|
||||
* canvas items without these fields still hydrate cleanly (they just
|
||||
* render without owner/due-date/notes annotations).
|
||||
*/
|
||||
final class Dependency
|
||||
{
|
||||
public function __construct(
|
||||
public readonly int $itemId,
|
||||
public readonly string $partnerName,
|
||||
public readonly string $type,
|
||||
public readonly bool $confirmed,
|
||||
public readonly ?string $owner = null,
|
||||
public readonly ?string $dueDate = null,
|
||||
public readonly ?string $notes = null,
|
||||
public readonly ?string $lastModified = null,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user