Created
November 23, 2009 17:06
-
-
Save Najaf/241191 to your computer and use it in GitHub Desktop.
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 | |
class Song { | |
private $duration; | |
private $name; | |
//Getters/Setters | |
function setName( $name ) { | |
return $this->name; | |
} | |
function getName( $name ) { | |
return $this>name; | |
} | |
function setDuration( $duration ) { | |
$this->duration = $duration; | |
} | |
function getDuration() { | |
return $this->duration; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment