File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " renderforest/sdk-php" ,
33 "description" : " Renderforest SDK for PHP" ,
4- "version" : " 0.4.3 " ,
4+ "version" : " 0.4.4 " ,
55 "homepage" : " https://github.com/renderforest/renderforest-sdk-php" ,
66 "authors" : [
77 {
Original file line number Diff line number Diff line change 1010use Renderforest \ProjectData \Screen \Collection \ScreenCollection ;
1111use Renderforest \ProjectData \Screen \Entity \Screen ;
1212use Renderforest \ProjectData \Sound \Collection \SoundCollection ;
13+ use Renderforest \Sound \UserSound ;
1314
1415/**
1516 * Class ProjectData
@@ -341,11 +342,22 @@ public function getSounds(): SoundCollection
341342 return $ this ->sounds ;
342343 }
343344
345+ /**
346+ * @return SoundCollection
347+ */
348+ public function insertUniqueSound (UserSound $ sound ): ProjectData
349+ {
350+ $ collection = new SoundCollection ();
351+ $ this ->sounds = $ collection ->add ($ sound );
352+
353+ return $ this ;
354+ }
355+
344356 /**
345357 * @param SoundCollection $sounds
346358 * @return ProjectData
347359 */
348- public function setSounds (SoundCollection $ sounds ): ProjectData
360+ private function setSounds (SoundCollection $ sounds ): ProjectData
349361 {
350362 $ this ->sounds = $ sounds ;
351363
You can’t perform that action at this time.
0 commit comments