Skip to content

Commit

Permalink
TASK: document and assert Node.nodeName behavior
Browse files Browse the repository at this point in the history
related #4311
  • Loading branch information
mhsdesign committed Feb 2, 2024
1 parent d45e946 commit 60bf327
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ private function __construct(
public ?NodeName $nodeName,
public Timestamps $timestamps,
) {
if ($this->classification->isTethered() && $this->nodeName === null) {
throw new \InvalidArgumentException('The NodeName must be set if the Node is tethered.', 1695118377);
}
}

/**
Expand Down

0 comments on commit 60bf327

Please sign in to comment.