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 1
1
{
2
2
"name" : " renderforest/sdk-php" ,
3
3
"description" : " Renderforest SDK for PHP" ,
4
- "version" : " 0.4.3 " ,
4
+ "version" : " 0.4.4 " ,
5
5
"homepage" : " https://github.com/renderforest/renderforest-sdk-php" ,
6
6
"authors" : [
7
7
{
Original file line number Diff line number Diff line change 10
10
use Renderforest \ProjectData \Screen \Collection \ScreenCollection ;
11
11
use Renderforest \ProjectData \Screen \Entity \Screen ;
12
12
use Renderforest \ProjectData \Sound \Collection \SoundCollection ;
13
+ use Renderforest \Sound \UserSound ;
13
14
14
15
/**
15
16
* Class ProjectData
@@ -341,11 +342,22 @@ public function getSounds(): SoundCollection
341
342
return $ this ->sounds ;
342
343
}
343
344
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
+
344
356
/**
345
357
* @param SoundCollection $sounds
346
358
* @return ProjectData
347
359
*/
348
- public function setSounds (SoundCollection $ sounds ): ProjectData
360
+ private function setSounds (SoundCollection $ sounds ): ProjectData
349
361
{
350
362
$ this ->sounds = $ sounds ;
351
363
You can’t perform that action at this time.
0 commit comments