From c03cf95e29d6745bf772d1608ee4a14d281e404b Mon Sep 17 00:00:00 2001 From: narekhovhannisyan Date: Wed, 4 Dec 2019 18:20:50 +0400 Subject: [PATCH 1/2] ProjectData: add insertUniqueSound method. --- src/ProjectData/ProjectData.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/ProjectData/ProjectData.php b/src/ProjectData/ProjectData.php index 3f374d1..5e1f285 100644 --- a/src/ProjectData/ProjectData.php +++ b/src/ProjectData/ProjectData.php @@ -10,6 +10,7 @@ use Renderforest\ProjectData\Screen\Collection\ScreenCollection; use Renderforest\ProjectData\Screen\Entity\Screen; use Renderforest\ProjectData\Sound\Collection\SoundCollection; +use Renderforest\Sound\UserSound; /** * Class ProjectData @@ -341,11 +342,22 @@ public function getSounds(): SoundCollection return $this->sounds; } + /** + * @return SoundCollection + */ + public function insertUniqueSound(UserSound $sound): ProjectData + { + $collection = new SoundCollection(); + $this->sounds = $collection->add($sound); + + return $this; + } + /** * @param SoundCollection $sounds * @return ProjectData */ - public function setSounds(SoundCollection $sounds): ProjectData + private function setSounds(SoundCollection $sounds): ProjectData { $this->sounds = $sounds; From 449fd1b43fb62e067a7205fa4300af961b9237d9 Mon Sep 17 00:00:00 2001 From: narekhovhannisyan Date: Wed, 4 Dec 2019 18:21:44 +0400 Subject: [PATCH 2/2] =?UTF-8?q?=E2=9C=A8=20release=200.4.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index fe4c015..03c2bb5 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "renderforest/sdk-php", "description": "Renderforest SDK for PHP", - "version": "0.4.3", + "version": "0.4.4", "homepage": "https://github.com/renderforest/renderforest-sdk-php", "authors": [ {