From 8d5b394c6b95332dc3800db31dc69df2af637254 Mon Sep 17 00:00:00 2001 From: longmtran Date: Fri, 6 Feb 2026 10:57:07 +0000 Subject: [PATCH] Fix: Change Link class properties back to protected for extensibility. --- src/Link.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Link.php b/src/Link.php index a7460c8..5fd79f8 100644 --- a/src/Link.php +++ b/src/Link.php @@ -26,17 +26,17 @@ class Link public const DOTTED = 3; public const THICK = 4; - private const TEMPLATES = [ + protected const TEMPLATES = [ self::ARROW => ['-->', '-->|%s|'], self::LINE => [' --- ', '---|%s|'], self::DOTTED => ['-.->', '-. %s .-> '], self::THICK => [' ==> ', ' == %s ==> '], ]; - private int $style = self::ARROW; - private string $text = ''; - private Node $sourceNode; - private Node $targetNode; + protected int $style = self::ARROW; + protected string $text = ''; + protected Node $sourceNode; + protected Node $targetNode; public function __construct(Node $sourceNode, Node $targetNode, string $text = '', int $style = self::ARROW) {