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 1, 2024
1 parent bbe5504 commit 59b3a13
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 59b3a13

Please sign in to comment.