Git wont add folders without shit in them so I put this in there lol.
[rock.divinelegy.git] / public_html / vendor / DivinElegy / Simfile.php
1 <?php
2 namespace DivinElegy;
3
4 class Simfile
5 {
6 //str - simfile title
7 protected $title;
8
9 //obj - reerence to song artist
10 protected $artist;
11
12 //obj - reference to uploader
13 protected $uploader;
14
15 //obj - reference to bpm object
16 protected $bpm;
17
18 //bool - does the chart have stops
19 protected $stops;
20
21 //bool - does the chart have fgChanges
22 protected $fgChanges;
23
24 //bool - does the charg have bgChanges
25 protected $bgChanges;
26
27 public function __construct($title)
28 {
29 $this->setTitle($title);
30 }
31
32 protected function setTitle($title)
33 {
34 if (empty($title))
35 {
36 throw new \InvalidArgumentException('Simfile title cannot be empty');
37 }
38
39 $this->title = $title;
40 }
41
42 public function setArtist(Artist $artist)
43 {
44 $this->artist = $artist;
45 }
46 }