Artist is allowed to be null.
[rock.divinelegy.git] / Domain / Entities / StepMania / SimfileStepByStepBuilder.php
index 2408d2f..53c7d26 100644 (file)
@@ -15,11 +15,7 @@ interface ISimfileStepByStepBuilder
 \r
 interface ISimfileStepByStepBuilder_With_Title\r
 {\r
-    public function With_Artist(IArtist $artist);\r
-}\r
-\r
-interface ISimfileStepByStepBuilder_With_Artist\r
-{\r
+    public function With_Artist(IArtist $artist = null);\r
     public function With_Uploader(IUser $uploader);\r
 }\r
 \r
@@ -85,15 +81,12 @@ class SimfileStepByStepBuilder extends AbstractSimfileStepByStepBuilder implemen
 \r
 class SimfileStepByStepBuilder_With_Title extends AbstractSimfileStepByStepBuilder implements ISimfileStepByStepBuilder_With_Title\r
 {        \r
-    public function With_Artist(IArtist $artist)\r
+    public function With_Artist(IArtist $artist = null)\r
     {\r
         $this->_simfileBuilder->With_Artist($artist);\r
-        return new SimfileStepByStepBuilder_With_Artist($this->_simfileBuilder);\r
+        return $this;\r
     }\r
-}\r
-\r
-class SimfileStepByStepBuilder_With_Artist extends AbstractSimfileStepByStepBuilder implements ISimfileStepByStepBuilder_With_Artist\r
-{        \r
+    \r
     public function With_Uploader(IUser $uploader)\r
     {\r
         $this->_simfileBuilder->With_Uploader($uploader);\r