From 6f799822832a66a444b80cdfc3c882793885e2b6 Mon Sep 17 00:00:00 2001 From: Thorsten Bus Date: Mon, 30 Mar 2026 08:04:08 +0200 Subject: [PATCH] fix(generator): add hotKey to Group and Cue --- php/src/Group.php | 13 +++++++++++++ php/tests/ProFileGeneratorTest.php | 6 +++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/php/src/Group.php b/php/src/Group.php index dc0df43..38e2473 100644 --- a/php/src/Group.php +++ b/php/src/Group.php @@ -93,6 +93,19 @@ class Group return $uuids; } + /** + * Get the group's hotKey. + */ + public function getHotKey(): ?\Rv\Data\HotKey + { + $group = $this->cueGroup->getGroup(); + if ($group === null) { + return null; + } + + return $group->getHotKey(); + } + /** * Get the underlying protobuf CueGroup object. */ diff --git a/php/tests/ProFileGeneratorTest.php b/php/tests/ProFileGeneratorTest.php index 4941238..5b3c29e 100644 --- a/php/tests/ProFileGeneratorTest.php +++ b/php/tests/ProFileGeneratorTest.php @@ -782,7 +782,7 @@ class ProFileGeneratorTest extends TestCase // Navigate to the first slide's media action $cue = $song->getPresentation()->getCues()[0]; $action = $cue->getActions()[0]; // media action - $url = $action->getMedia()->getUrl(); + $url = $action->getMedia()->getElement()->getUrl(); $this->assertNotNull($url); $this->assertNotNull($url->getLocal()); @@ -816,7 +816,7 @@ class ProFileGeneratorTest extends TestCase // Navigate to the first slide's media action $cue = $song->getPresentation()->getCues()[0]; $action = $cue->getActions()[0]; // media action - $url = $action->getMedia()->getUrl(); + $url = $action->getMedia()->getElement()->getUrl(); $this->assertNotNull($url); $this->assertNotNull($url->getLocal()); @@ -850,7 +850,7 @@ class ProFileGeneratorTest extends TestCase // Navigate to the first slide's media action $cue = $song->getPresentation()->getCues()[0]; $action = $cue->getActions()[0]; // media action - $url = $action->getMedia()->getUrl(); + $url = $action->getMedia()->getElement()->getUrl(); $this->assertNotNull($url); $this->assertNotNull($url->getLocal());