Skip to content

Instantly share code, notes, and snippets.

@Najaf
Created November 23, 2009 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Najaf/241191 to your computer and use it in GitHub Desktop.
Save Najaf/241191 to your computer and use it in GitHub Desktop.
<?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