From: Cameron Ball Date: Tue, 10 Jun 2014 15:25:23 +0000 (+0800) Subject: Progress on #1. Still need to implement domain objects for Artist, bpm etc but at... X-Git-Url: http://git.cameron1729.xyz/?p=rock.divinelegy.git;a=commitdiff_plain;h=b6fc85ee523f430c5afa6ff9c15073b3701de442 Progress on #1. Still need to implement domain objects for Artist, bpm etc but at least I now have a starting point. --- diff --git a/public_html/vendor/DivinElegy/Artists.php b/public_html/vendor/DivinElegy/Artists.php new file mode 100644 index 0000000..4df79b2 --- /dev/null +++ b/public_html/vendor/DivinElegy/Artists.php @@ -0,0 +1,7 @@ +setTitle($title); + } + + protected function setTitle($title) + { + if (empty($title)) + { + throw new \InvalidArgumentException('Simfile title cannot be empty'); + } + + $this->title = $title; + } + + public function setArtist(Artist $artist) + { + $this->artist = $artist; + } +}