Created
May 7, 2010 22:12
-
-
Save collegeman/394057 to your computer and use it in GitHub Desktop.
Thinking about Muse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// create a new artist | |
$srv = new Artist('Stevie Ray Vaughan'); | |
$srv->played[] = 'Electric Guitar'; | |
$srv->influences[] = new Artist('Jimi Hendrix'); | |
$srv->influences[] = new Artist('Buddy Guy'); | |
$srv->save(); | |
// create another new artist | |
$layton = new Artist('Chris Layton'); | |
$layton->played[] = 'Drums'; | |
$layton->save(); | |
// one more for good measure | |
$shannon = new Artist('Tommy Shannon'); | |
$shannon->played[] = 'Electric Bass'; | |
$shannon->save(); | |
// these guys played together | |
band('Stevie Ray Vaughan and Double Trouble', array($srv, $layton, $shannon)); | |
// so did these guys | |
$lets_dance = album("Let's Dance", array($srv, new Artist('David Bowie')), array("released" => 1983)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to capture some ideas.