Pack entity builder stuff. Not tested yet.
[rock.divinelegy.git] / Domain / Entities / StepMania / PackFactory.php
1 <?php
2
3 namespace Domain\Entities\StepMania;
4
5 use Domain\Entities\StepMania\Pack;
6 use Domain\Entities\IUser;
7
8 interface IPackFactory
9 {
10 public function createInstance(
11 $title,
12 IUser $uploader,
13 array $simfiles,
14 IFile $file = null
15 );
16 }
17
18 class PackFactory implements IPackFactory
19 {
20 public function createInstance(
21 $title,
22 IUser $uploader,
23 array $simfiles,
24 IFile $file = null
25 ) {
26 return new Pack(
27 $title,
28 $uploader,
29 $simfiles,
30 $file
31 );
32 }
33 }