From b6fc85ee523f430c5afa6ff9c15073b3701de442 Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Tue, 10 Jun 2014 23:25:23 +0800 Subject: [PATCH] Progress on #1. Still need to implement domain objects for Artist, bpm etc but at least I now have a starting point. --- public_html/vendor/DivinElegy/Artists.php | 7 +++++ public_html/vendor/DivinElegy/Simfile.php | 46 +++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 public_html/vendor/DivinElegy/Artists.php create mode 100644 public_html/vendor/DivinElegy/Simfile.php 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; + } +} -- 2.11.0