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());